mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Add test for SF #658106. Will backport.
This commit is contained in:
parent
c7d8c68c65
commit
78ce6b10ed
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue