Now that int is subclassable, have to change a test that tests for
non-subclassability. (More tests for number subclassing should follow.)
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 1b53bb6..54b03b2 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -684,12 +684,12 @@
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):