diff options
author | Guido van Rossum <guido@python.org> | 2007-08-29 02:57:31 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-29 02:57:31 (GMT) |
commit | 83800a657863575387f04dcfee36b53f6af1a310 (patch) | |
tree | d0fe2b6b602664faf578fa5e2510de30b55d67f3 /Lib/test/test_shelve.py | |
parent | 083e20c8e1ed95b98e9b1f02173eccb15f307424 (diff) | |
download | cpython-83800a657863575387f04dcfee36b53f6af1a310.zip cpython-83800a657863575387f04dcfee36b53f6af1a310.tar.gz cpython-83800a657863575387f04dcfee36b53f6af1a310.tar.bz2 |
Fix this test. How could it ever have worked?!
Diffstat (limited to 'Lib/test/test_shelve.py')
-rw-r--r-- | Lib/test/test_shelve.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_shelve.py b/Lib/test/test_shelve.py index f8fcda9..e5d19f5 100644 --- a/Lib/test/test_shelve.py +++ b/Lib/test/test_shelve.py @@ -25,7 +25,7 @@ class byteskeydict(DictMixin): 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 @@ class TestCase(unittest.TestCase): 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() |