mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
736aa32a39
commit
3a9d0611fb
4 changed files with 19 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue