mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix this test. How could it ever have worked?!
This commit is contained in:
parent
083e20c8e1
commit
83800a6578
1 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue