Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e30440

Browse files
committed
Merged revisions 75236 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r75236 | mark.dickinson | 2009-10-04 19:38:39 +0100 (Sun, 04 Oct 2009) | 4 lines Issue #7042: Fix test_signal failure on OS X 10.6 64-bit builds (and also, with luck, on the x86 FreeBSD buildbot), by making sure that some user time is used in test_itimer_virtual. ........
1 parent a539fd1 commit 2e30440

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/test/test_signal.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ def test_itimer_virtual(self):
361361
signal.setitimer(self.itimer, 0.3, 0.2)
362362

363363
for i in range(100000000):
364+
# use up some virtual time by doing real work
365+
_ = pow(12345, 67890, 10000019)
364366
if signal.getitimer(self.itimer) == (0.0, 0.0):
365367
break # sig_vtalrm handler stopped this itimer
366368

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ Documentation
252252
Tests
253253
-----
254254

255+
- Issue #7042: Fix test_signal (test_itimer_virtual) failure on OS X 10.6.
256+
255257
- Fixed tests in importlib.test.source.test_abc_loader that were masking
256258
the proper exceptions that should be raised for missing or improper code
257259
object bytecode.

0 commit comments

Comments
 (0)