Ezio Melotti added the comment:
Fixed, thanks for the report and the patch!
--
assignee: -> ezio.melotti
nosy: +ezio.melotti
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
type: -> enhancement
versions: +Python 2.7, Python 3.3
__
Roundup Robot added the comment:
New changeset 92c2e76ca595 by Ezio Melotti in branch '2.7':
#19166: use an unused var in a test. Patch by Vajrasky Kok.
http://hg.python.org/cpython/rev/92c2e76ca595
New changeset 33bbc60705e8 by Ezio Melotti in branch '3.3':
#19166: use an unused var in a test.
New submission from Vajrasky Kok:
This is the test.
def test_keys(self):
d = {}
self.assertEqual(set(d.keys()), set())
d = {'a': 1, 'b': 2}
k = d.keys()
self.assertIn('a', d)
self.assertIn('b', d)
self.assertRaises(TypeError, d.keys, Non