summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_signal.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-10-04 18:47:48 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-10-04 18:47:48 (GMT)
commit9507887544965b471129cded5066e0b2339eb414 (patch)
treeedfc4d12124f8d09807bc9020e0f15371c1efc56 /Lib/test/test_signal.py
parent0a13a28049f0f9cf4d0455d2c413fc7d53519d2e (diff)
downloadcpython-9507887544965b471129cded5066e0b2339eb414.zip
cpython-9507887544965b471129cded5066e0b2339eb414.tar.gz
cpython-9507887544965b471129cded5066e0b2339eb414.tar.bz2
Merged revisions 75238 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k ................ r75238 | mark.dickinson | 2009-10-04 19:43:54 +0100 (Sun, 04 Oct 2009) | 11 lines 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. ........ ................
Diffstat (limited to 'Lib/test/test_signal.py')
-rw-r--r--Lib/test/test_signal.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index 5fc4220..4e06a34 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -361,6 +361,8 @@ class ItimerTest(unittest.TestCase):
signal.setitimer(self.itimer, 0.3, 0.2)
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):
break # sig_vtalrm handler stopped this itimer