diff options
author | Georg Brandl <georg@python.org> | 2007-04-11 19:24:50 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-04-11 19:24:50 (GMT) |
commit | 57b39e0916d741d9851ac875d8f443bfc6005def (patch) | |
tree | 582159ea9ac83512264eb4ecb442f4bf19e7712f /Lib/test | |
parent | b5ddcfd2a203336f3ba7bb1111cda462333c9e1f (diff) | |
download | cpython-57b39e0916d741d9851ac875d8f443bfc6005def.zip cpython-57b39e0916d741d9851ac875d8f443bfc6005def.tar.gz cpython-57b39e0916d741d9851ac875d8f443bfc6005def.tar.bz2 |
Bug #1697782: remove all remaining code that uses types.InstanceType.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/crashers/infinite_rec_5.py | 10 | ||||
-rw-r--r-- | Lib/test/test_isinstance.py | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/Lib/test/crashers/infinite_rec_5.py b/Lib/test/crashers/infinite_rec_5.py deleted file mode 100644 index 18d2963..0000000 --- a/Lib/test/crashers/infinite_rec_5.py +++ /dev/null @@ -1,10 +0,0 @@ - -# http://python.org/sf/1267884 - -import types - -class C: - __str__ = types.InstanceType.__str__ - -if __name__ == '__main__': - str(C()) # segfault: infinite recursion in C diff --git a/Lib/test/test_isinstance.py b/Lib/test/test_isinstance.py index cc2b5fd..366ced7 100644 --- a/Lib/test/test_isinstance.py +++ b/Lib/test/test_isinstance.py @@ -15,7 +15,6 @@ class TestIsInstanceExceptions(unittest.TestCase): # (leading to an "undetected error" in the debug build). Set up is, # isinstance(inst, cls) where: # - # - inst isn't an InstanceType # - cls isn't a ClassType, a TypeType, or a TupleType # - cls has a __bases__ attribute # - inst has a __class__ attribute |