Skip to content

Commit 06ba9ad

Browse files
committed
Merged revisions 81185 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r81185 | stefan.krah | 2010-05-15 11:31:08 +0200 (Sat, 15 May 2010) | 4 lines If the timeout is exceeded, count the tests as skipped instead of just issuing a warning. ........
1 parent 4000ffa commit 06ba9ad

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Lib/test/test_signal.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,8 @@ def test_itimer_virtual(self):
431431
if signal.getitimer(self.itimer) == (0.0, 0.0):
432432
break # sig_vtalrm handler stopped this itimer
433433
else: # Issue 8424
434-
sys.stdout.write("test_itimer_virtual: timeout: likely cause: "
435-
"machine too slow or load too high.\n")
436-
return
434+
raise unittest.SkipTest("timeout: likely cause: machine too slow "
435+
"or load too high")
437436

438437
# virtual itimer should be (0.0, 0.0) now
439438
self.assertEquals(signal.getitimer(self.itimer), (0.0, 0.0))
@@ -455,9 +454,8 @@ def test_itimer_prof(self):
455454
if signal.getitimer(self.itimer) == (0.0, 0.0):
456455
break # sig_prof handler stopped this itimer
457456
else: # Issue 8424
458-
sys.stdout.write("test_itimer_prof: timeout: likely cause: "
459-
"machine too slow or load too high.\n")
460-
return
457+
raise unittest.SkipTest("timeout: likely cause: machine too slow "
458+
"or load too high")
461459

462460
# profiling itimer should be (0.0, 0.0) now
463461
self.assertEquals(signal.getitimer(self.itimer), (0.0, 0.0))

0 commit comments

Comments
 (0)