summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-01-02 16:16:09 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-01-02 16:16:09 (GMT)
commitd8f37ad196549edea3d877365eeedb010e18263f (patch)
tree97a01af75ac8bcd270f61097fec1d4e8a893cf5e
parent121ff8235be19475e0938b324c7087f06eb0c427 (diff)
downloadcpython-d8f37ad196549edea3d877365eeedb010e18263f.zip
cpython-d8f37ad196549edea3d877365eeedb010e18263f.tar.gz
cpython-d8f37ad196549edea3d877365eeedb010e18263f.tar.bz2
Relax test condition a lot
-rw-r--r--Lib/test/test_threadsignals.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_threadsignals.py b/Lib/test/test_threadsignals.py
index e606a0a..2462307 100644
--- a/Lib/test/test_threadsignals.py
+++ b/Lib/test/test_threadsignals.py
@@ -176,8 +176,9 @@ class ThreadSignals(unittest.TestCase):
self.assertLess(self.end - self.start, 2.0)
self.assertGreater(self.end - self.start, 0.3)
# If the signal is received several times before PyErr_CheckSignals()
- # is called, the handler will get called less than 40 times.
- self.assertGreater(self.sigs_recvd, 20)
+ # is called, the handler will get called less than 40 times. Just
+ # check it's been called at least once.
+ self.assertGreater(self.sigs_recvd, 0)
finally:
signal.signal(signal.SIGUSR1, old_handler)