]> granicus.if.org Git - python/commitdiff
use TestCase skip method
authorBenjamin Peterson <benjamin@python.org>
Sat, 15 May 2010 17:48:55 +0000 (17:48 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 15 May 2010 17:48:55 +0000 (17:48 +0000)
Lib/test/test_signal.py

index 228a776de5d41955813787868dea3994df5591ca..c9de8a45815cafc53c2c71f531755293f156ea44 100644 (file)
@@ -431,8 +431,8 @@ class ItimerTest(unittest.TestCase):
             if signal.getitimer(self.itimer) == (0.0, 0.0):
                 break # sig_vtalrm handler stopped this itimer
         else: # Issue 8424
-            raise unittest.SkipTest("timeout: likely cause: machine too slow "
-                                    "or load too high")
+            self.skipTest("timeout: likely cause: machine too slow or load too "
+                          "high")
 
         # virtual itimer should be (0.0, 0.0) now
         self.assertEquals(signal.getitimer(self.itimer), (0.0, 0.0))
@@ -454,8 +454,8 @@ class ItimerTest(unittest.TestCase):
             if signal.getitimer(self.itimer) == (0.0, 0.0):
                 break # sig_prof handler stopped this itimer
         else: # Issue 8424
-            raise unittest.SkipTest("timeout: likely cause: machine too slow "
-                                    "or load too high")
+            self.skipTest("timeout: likely cause: machine too slow or load too "
+                          "high")
 
         # profiling itimer should be (0.0, 0.0) now
         self.assertEquals(signal.getitimer(self.itimer), (0.0, 0.0))