Commit 2e304401 authored by Mark Dickinson's avatar Mark Dickinson

Merged revisions 75236 via svnmerge from

svn+ssh://pythondev@svn.python.org/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.
........
parent a539fd18
...@@ -361,6 +361,8 @@ class ItimerTest(unittest.TestCase): ...@@ -361,6 +361,8 @@ class ItimerTest(unittest.TestCase):
signal.setitimer(self.itimer, 0.3, 0.2) signal.setitimer(self.itimer, 0.3, 0.2)
for i in range(100000000): for i in range(100000000):
# use up some virtual time by doing real work
_ = pow(12345, 67890, 10000019)
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
......
...@@ -252,6 +252,8 @@ Documentation ...@@ -252,6 +252,8 @@ Documentation
Tests Tests
----- -----
- Issue #7042: Fix test_signal (test_itimer_virtual) failure on OS X 10.6.
- Fixed tests in importlib.test.source.test_abc_loader that were masking - Fixed tests in importlib.test.source.test_abc_loader that were masking
the proper exceptions that should be raised for missing or improper code the proper exceptions that should be raised for missing or improper code
object bytecode. object bytecode.
......
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