[Python-3000-checkins] r57639 - python/branches/py3k/Lib/test/test_shelve.py
guido.van.rossum
python-3000-checkins at python.org
Wed Aug 29 04:57:32 CEST 2007
Author: guido.van.rossum
Date: Wed Aug 29 04:57:31 2007
New Revision: 57639
Modified:
python/branches/py3k/Lib/test/test_shelve.py
Log:
Fix this test. How could it ever have worked?!
Modified: python/branches/py3k/Lib/test/test_shelve.py
==============================================================================
--- python/branches/py3k/Lib/test/test_shelve.py (original)
+++ python/branches/py3k/Lib/test/test_shelve.py Wed Aug 29 04:57:31 2007
@@ -25,7 +25,7 @@
def iterkeys(self):
for k in self.d.keys():
- yield k.decode("latin-1")
+ yield k.encode("latin-1")
def keys(self):
return list(self.iterkeys())
@@ -79,7 +79,8 @@
s.close()
self.assertEqual(len(d1), 1)
- self.assertNotEqual(d1, d2)
+ self.assertEqual(len(d2), 1)
+ self.assertNotEqual(d1.items(), d2.items())
def test_mutable_entry(self):
d1 = byteskeydict()
More information about the Python-3000-checkins
mailing list