Commits

Michael Foord  committed d2be68a

Fix test incompatibility with Python 2.4

  • Participants
  • Parent commits 3d33f92

Comments (0)

Files changed (1)

File unittest2/test/test_case.py

                 self.addCleanup(_raise)
 
         for klass in (Test1, Test2, Test3, Test4):
-            with self.assertRaises(KeyboardInterrupt):
-                klass('test_something').run()
+            self.assertRaises(KeyboardInterrupt,
+                klass('test_something').run)
 
     def testSkippingEverywhere(self):
         def _skip(self=None):