mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
#19166: merge with 3.3.
This commit is contained in:
commit
a349478573
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue