diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-05-15 17:52:12 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-05-15 17:52:12 (GMT) |
commit | 558cd64de00613b2ed301c3a3d5cc7c791b0e370 (patch) | |
tree | 249b6d5b7438f580bce1e1adf653ada19d1622ec /Lib/test | |
parent | 0c3d21de0580995cc06b551c967cc4a9fa935775 (diff) | |
download | cpython-558cd64de00613b2ed301c3a3d5cc7c791b0e370.zip cpython-558cd64de00613b2ed301c3a3d5cc7c791b0e370.tar.gz cpython-558cd64de00613b2ed301c3a3d5cc7c791b0e370.tar.bz2 |
Merged revisions 81200 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81200 | benjamin.peterson | 2010-05-15 12:48:55 -0500 (Sat, 15 May 2010) | 1 line
use TestCase skip method
........
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_signal.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index ade339a..a246695 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)) |