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.
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 06861df..7ee203c 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -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