Now that int is subclassable, have to change a test that tests for
authorGuido van Rossum <guido@python.org>
Wed, 29 Aug 2001 15:48:43 +0000 (15:48 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 29 Aug 2001 15:48:43 +0000 (15:48 +0000)
non-subclassability.  (More tests for number subclassing should follow.)

Lib/test/test_descr.py

index 1b53bb64c66830af486e38ca45f9f2300d7a391f..54b03b2f9bc03f72fa27e36df64ba0c539c72a50 100644 (file)
@@ -684,12 +684,12 @@ def errors():
         verify(0, "inheritance from object and Classic should be illegal")
 
     try:
-        class C(int):
+        class C(type(len)):
             pass
     except TypeError:
         pass
     else:
-        verify(0, "inheritance from int should be illegal")
+        verify(0, "inheritance from CFunction should be illegal")
 
     try:
         class C(object):