diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-10-05 00:07:03 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-10-05 00:07:03 (GMT) |
commit | 4e1f3d669b83c21da9314b70a58a18e92807bd54 (patch) | |
tree | d51c0ef753a3c79b94e11160e0e38bcba6f4fd1e | |
parent | cb1d96f782f48b5ad1bc39a1024845492a4a123b (diff) | |
download | cpython-4e1f3d669b83c21da9314b70a58a18e92807bd54.zip cpython-4e1f3d669b83c21da9314b70a58a18e92807bd54.tar.gz cpython-4e1f3d669b83c21da9314b70a58a18e92807bd54.tar.bz2 |
#19166: use an unused var in a test. Patch by Vajrasky Kok.
-rw-r--r-- | Lib/test/test_dict.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py index d1f3192..a388959 100644 --- a/Lib/test/test_dict.py +++ b/Lib/test/test_dict.py @@ -45,6 +45,9 @@ class DictTest(unittest.TestCase): self.assertEqual(set(d.keys()), set()) d = {'a': 1, 'b': 2} k = d.keys() + self.assertEqual(set(k), {'a', 'b'}) + self.assertIn('a', k) + self.assertIn('b', k) self.assertIn('a', d) self.assertIn('b', d) self.assertRaises(TypeError, d.keys, None) |