summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compare.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-08-16 16:56:16 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-08-16 16:56:16 (GMT)
commit63a8d694768b48e67138f7de85d9acf590847560 (patch)
tree27f798e12c8561e13f222fafc590741bbbd9437d /Lib/test/test_compare.py
parent2f7045576d46eeee19258cb50c72b8edd25f299f (diff)
downloadcpython-63a8d694768b48e67138f7de85d9acf590847560.zip
cpython-63a8d694768b48e67138f7de85d9acf590847560.tar.gz
cpython-63a8d694768b48e67138f7de85d9acf590847560.tar.bz2
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".
Diffstat (limited to 'Lib/test/test_compare.py')
-rw-r--r--Lib/test/test_compare.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_compare.py b/Lib/test/test_compare.py
index 1d8b947..bc833ea 100644
--- a/Lib/test/test_compare.py
+++ b/Lib/test/test_compare.py
@@ -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: