summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-04-11 19:24:50 (GMT)
committerGeorg Brandl <georg@python.org>2007-04-11 19:24:50 (GMT)
commit57b39e0916d741d9851ac875d8f443bfc6005def (patch)
tree582159ea9ac83512264eb4ecb442f4bf19e7712f /Lib/test
parentb5ddcfd2a203336f3ba7bb1111cda462333c9e1f (diff)
downloadcpython-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.py10
-rw-r--r--Lib/test/test_isinstance.py1
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