mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
Add test for SF #658106. Will backport.
This commit is contained in:
parent
c7d8c68c65
commit
78ce6b10ed
@ -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..."
|
||||
|
Loading…
Reference in New Issue
Block a user