diff options
author | Barry Warsaw <barry@python.org> | 2000-09-01 06:53:52 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2000-09-01 06:53:52 (GMT) |
commit | 3a9d0611fb5ec9cff7d24c885349637838b20c30 (patch) | |
tree | c4c3df922dc7f68126f9fb7178f5c16e9e54c79f /Lib/test/test_exceptions.py | |
parent | 736aa32a39d1c7afb5f3298fd0e13c51754546c7 (diff) | |
download | cpython-3a9d0611fb5ec9cff7d24c885349637838b20c30.zip cpython-3a9d0611fb5ec9cff7d24c885349637838b20c30.tar.gz cpython-3a9d0611fb5ec9cff7d24c885349637838b20c30.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 test_raise_catch(exc): def r(thing): test_raise_catch(thing) - if type(thing) == ClassType: + if isinstance(thing, ClassType): print thing.__name__ else: print thing |