From 4e1f3d669b83c21da9314b70a58a18e92807bd54 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Sat, 5 Oct 2013 03:07:03 +0300 Subject: [PATCH] #19166: use an unused var in a test. Patch by Vajrasky Kok. --- Lib/test/test_dict.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py index d1f31923708..a38895945ed 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)