summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_shelve.py5
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()