]> granicus.if.org Git - python/commitdiff
Reverted inadvertent change from r86095
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Mon, 1 Nov 2010 17:52:57 +0000 (17:52 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Mon, 1 Nov 2010 17:52:57 +0000 (17:52 +0000)
Lib/test/test_dict.py

index 055bfd8d8b3a5b0986c1048ca4b366b5666ca19b..818c99ed3bb3404e20ea699bf75cf656614bdee8 100644 (file)
@@ -329,19 +329,11 @@ class DictTest(unittest.TestCase):
         k, v = 'abc', 'def'
         d[k] = v
         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(len(d), 0)
 
         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)
         d[k] = v