Kaydet (Commit) 3b87ccad authored tarafından Alexander Belopolsky's avatar Alexander Belopolsky

Reverted inadvertent change from r86095

üst ea13d9d8
...@@ -329,19 +329,11 @@ class DictTest(unittest.TestCase): ...@@ -329,19 +329,11 @@ class DictTest(unittest.TestCase):
k, v = 'abc', 'def' k, v = 'abc', 'def'
d[k] = v d[k] = v
self.assertRaises(KeyError, d.pop, 'ghi') self.assertRaises(KeyError, d.pop, 'ghi')
try:
d.pop('ghi')
except KeyError as e:
self.assertEquals(e.args[0], 'ghi')
self.assertEqual(d.pop(k), v) self.assertEqual(d.pop(k), v)
self.assertEqual(len(d), 0) self.assertEqual(len(d), 0)
self.assertRaises(KeyError, d.pop, k) self.assertRaises(KeyError, d.pop, k)
try:
d.pop(k)
except KeyError as e:
self.assertEquals(e.args[0], k)
self.assertEqual(d.pop(k, v), v) self.assertEqual(d.pop(k, v), v)
d[k] = v d[k] = v
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment