#19166: use an unused var in a test. Patch by Vajrasky Kok.

This commit is contained in:
Ezio Melotti 2013-10-05 03:07:03 +03:00
parent cb1d96f782
commit 4e1f3d669b
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ class DictTest(unittest.TestCase):
self.assertEqual(set(d.keys()), set()) self.assertEqual(set(d.keys()), set())
d = {'a': 1, 'b': 2} d = {'a': 1, 'b': 2}
k = d.keys() k = d.keys()
self.assertEqual(set(k), {'a', 'b'})
self.assertIn('a', k)
self.assertIn('b', k)
self.assertIn('a', d) self.assertIn('a', d)
self.assertIn('b', d) self.assertIn('b', d)
self.assertRaises(TypeError, d.keys, None) self.assertRaises(TypeError, d.keys, None)