mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Repair some accidents causing Windows failures:
+ test_compare. While None compares less than anything else, it's not always the case that None has the smallest id(). + test_descr. The output of %p (pointer) formats varies across platforms. In particular, on Windows it doesn't produce a leading "0x".
This commit is contained in:
parent
2f7045576d
commit
63a8d69476
2 changed files with 5 additions and 5 deletions
|
@ -45,7 +45,7 @@ def test():
|
|||
else:
|
||||
print "%s != %s" % (a, b)
|
||||
# Ensure default comparison compares id() of args
|
||||
L = [None]
|
||||
L = []
|
||||
for i in range(10):
|
||||
L.insert(len(L)/2, Empty())
|
||||
for a in L:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue