Now that int is subclassable, have to change a test that tests for

non-subclassability.  (More tests for number subclassing should follow.)
This commit is contained in:
Guido van Rossum 2001-08-29 15:48:43 +00:00
parent bef1417f9f
commit 8aea0cc94e

View 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):