From: Guido van Rossum Date: Wed, 29 Aug 2001 15:48:43 +0000 (+0000) Subject: Now that int is subclassable, have to change a test that tests for X-Git-Tag: v2.2a3~259 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8aea0cc94e1949a2fa06924d058a7d150238544a;p=thirdparty%2FPython%2Fcpython.git 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 1b53bb64c668..54b03b2f9bc0 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):