diff Lib/test/test_exceptions.py @ 14342:d41c41371dc1 legacy-trunk

Applying patch #100994 to allow JPython to use more of the standard Python test suite. Specifically, - import time instead of strop in test_b1 - test for ClassType of exceptions using isinstance instead of equality in test_exceptions - remove __builtins__ from dir() output in test_pkg test_pkg output needs to be regenerated.
author Barry Warsaw <barry@python.org>
date Fri, 01 Sep 2000 06:53:52 +0000
parents feab677269e0
children f6b86e2dc55b
line wrap: on
line diff
--- a/Lib/test/test_exceptions.py	Fri Sep 01 06:51:24 2000 +0000
+++ b/Lib/test/test_exceptions.py	Fri Sep 01 06:53:52 2000 +0000
@@ -19,7 +19,7 @@
 
 def r(thing):
     test_raise_catch(thing)
-    if type(thing) == ClassType:
+    if isinstance(thing, ClassType):
         print thing.__name__
     else:
         print thing