From: Neal Norwitz Date: Tue, 24 Dec 2002 15:26:42 +0000 (+0000) Subject: Add test for SF #658106. Will backport. X-Git-Tag: v2.3c1~2890 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=78ce6b10ed40d2837f0e51f9af343537cbdef397;p=thirdparty%2FPython%2Fcpython.git Add test for SF #658106. Will backport. --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 5a1fcec932c6..0f656c244229 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -2625,6 +2625,10 @@ def setclass(): cant(Int(), int) cant(True, int) cant(2, bool) + o = object() + cant(o, type(1)) + cant(o, type(None)) + del o def setdict(): if verbose: print "Testing __dict__ assignment..."