Commit 8aea0cc9 authored by Guido van Rossum's avatar Guido van Rossum

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

non-subclassability.  (More tests for number subclassing should follow.)
parent bef1417f
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment