summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-12-24 15:26:42 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-12-24 15:26:42 (GMT)
commit78ce6b10ed40d2837f0e51f9af343537cbdef397 (patch)
tree10ac75ec00202263552bc92b2e33f43c166befbe /Lib/test/test_descr.py
parentc7d8c68c6512b8c89d5058008763c6cb04797839 (diff)
downloadcpython-78ce6b10ed40d2837f0e51f9af343537cbdef397.zip
cpython-78ce6b10ed40d2837f0e51f9af343537cbdef397.tar.gz
cpython-78ce6b10ed40d2837f0e51f9af343537cbdef397.tar.bz2
Add test for SF #658106. Will backport.
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r--Lib/test/test_descr.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 5a1fcec..0f656c2 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..."