Commit 558cd64d authored by Benjamin Peterson's avatar Benjamin Peterson

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
........
parent 0c3d21de
...@@ -431,8 +431,8 @@ class ItimerTest(unittest.TestCase): ...@@ -431,8 +431,8 @@ class ItimerTest(unittest.TestCase):
if signal.getitimer(self.itimer) == (0.0, 0.0): if signal.getitimer(self.itimer) == (0.0, 0.0):
break # sig_vtalrm handler stopped this itimer break # sig_vtalrm handler stopped this itimer
else: # Issue 8424 else: # Issue 8424
raise unittest.SkipTest("timeout: likely cause: machine too slow " self.skipTest("timeout: likely cause: machine too slow or load too "
"or load too high") "high")
# virtual itimer should be (0.0, 0.0) now # virtual itimer should be (0.0, 0.0) now
self.assertEquals(signal.getitimer(self.itimer), (0.0, 0.0)) self.assertEquals(signal.getitimer(self.itimer), (0.0, 0.0))
...@@ -454,8 +454,8 @@ class ItimerTest(unittest.TestCase): ...@@ -454,8 +454,8 @@ class ItimerTest(unittest.TestCase):
if signal.getitimer(self.itimer) == (0.0, 0.0): if signal.getitimer(self.itimer) == (0.0, 0.0):
break # sig_prof handler stopped this itimer break # sig_prof handler stopped this itimer
else: # Issue 8424 else: # Issue 8424
raise unittest.SkipTest("timeout: likely cause: machine too slow " self.skipTest("timeout: likely cause: machine too slow or load too "
"or load too high") "high")
# profiling itimer should be (0.0, 0.0) now # profiling itimer should be (0.0, 0.0) now
self.assertEquals(signal.getitimer(self.itimer), (0.0, 0.0)) self.assertEquals(signal.getitimer(self.itimer), (0.0, 0.0))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment