From: Benjamin Peterson Date: Sat, 15 May 2010 17:48:55 +0000 (+0000) Subject: use TestCase skip method X-Git-Tag: v2.7rc1~149 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b5134b8d1eee2a5e0fab860e205ef44e5f39acc;p=thirdparty%2FPython%2Fcpython.git use TestCase skip method --- diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index 228a776de5d4..c9de8a45815c 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -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))