summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-29 15:48:43 (GMT)
committerGuido van Rossum <guido@python.org>2001-08-29 15:48:43 (GMT)
commit8aea0cc94e1949a2fa06924d058a7d150238544a (patch)
tree654f12254a0b5b5a49cd8cf31094218b281715d5
parentbef1417f9f31fdf0f7b7bdb458c1c1f17c5cfada (diff)
downloadcpython-8aea0cc94e1949a2fa06924d058a7d150238544a.zip
cpython-8aea0cc94e1949a2fa06924d058a7d150238544a.tar.gz
cpython-8aea0cc94e1949a2fa06924d058a7d150238544a.tar.bz2
Now that int is subclassable, have to change a test that tests for
non-subclassability. (More tests for number subclassing should follow.)
-rw-r--r--Lib/test/test_descr.py4
1 files changed, 2 insertions, 2 deletions
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 @@ 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):