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:
Tim Peters 2001-08-16 16:56:16 +00:00
parent 2f7045576d
commit 63a8d69476
2 changed files with 5 additions and 5 deletions

View file

@ -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: