Fix unstable case in builtin_id.py test.

This commit is contained in:
Paul Sokolovsky 2014-02-04 00:50:22 +02:00
parent 1d938c9503
commit 00c0b8a989
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
print(id(1) == id(2))
print(id(None) == id(None))
print(id([]) == id([]))
# This can't be true per Python semantics, just CPython implementation detail
#print(id([]) == id([]))
l = [1, 2]
print(id(l) == id(l))