Skip to content

Commit 00c0b8a

Browse files
committed
Fix unstable case in builtin_id.py test.
1 parent 1d938c9 commit 00c0b8a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/basics/builtin_id.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
print(id(1) == id(2))
22
print(id(None) == id(None))
3-
print(id([]) == id([]))
3+
# This can't be true per Python semantics, just CPython implementation detail
4+
#print(id([]) == id([]))
45

56
l = [1, 2]
67
print(id(l) == id(l))

0 commit comments

Comments
 (0)