summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-10-05 00:07:03 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-10-05 00:07:03 (GMT)
commit4e1f3d669b83c21da9314b70a58a18e92807bd54 (patch)
treed51c0ef753a3c79b94e11160e0e38bcba6f4fd1e /Lib/test
parentcb1d96f782f48b5ad1bc39a1024845492a4a123b (diff)
downloadcpython-4e1f3d669b83c21da9314b70a58a18e92807bd54.zip
cpython-4e1f3d669b83c21da9314b70a58a18e92807bd54.tar.gz
cpython-4e1f3d669b83c21da9314b70a58a18e92807bd54.tar.bz2
#19166: use an unused var in a test. Patch by Vajrasky Kok.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_dict.py3
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)