summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-10-05 00:14:13 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-10-05 00:14:13 (GMT)
commita3494785730c174dd4e826f35728aaa2a51cfaf1 (patch)
treed42b78c92db0320ec9d3de750be40950053c4574 /Lib
parent07573d7b2418dd3a043c8fc95f40517fa4543048 (diff)
parent4e1f3d669b83c21da9314b70a58a18e92807bd54 (diff)
downloadcpython-a3494785730c174dd4e826f35728aaa2a51cfaf1.zip
cpython-a3494785730c174dd4e826f35728aaa2a51cfaf1.tar.gz
cpython-a3494785730c174dd4e826f35728aaa2a51cfaf1.tar.bz2
#19166: merge with 3.3.
Diffstat (limited to 'Lib')
-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)