[Python-checkins] r87628 - python/branches/py3k/Lib/test/test_threadsignals.py
antoine.pitrou
python-checkins at python.org
Sun Jan 2 17:16:10 CET 2011
Author: antoine.pitrou
Date: Sun Jan 2 17:16:09 2011
New Revision: 87628
Log:
Relax test condition a lot
Modified:
python/branches/py3k/Lib/test/test_threadsignals.py
Modified: python/branches/py3k/Lib/test/test_threadsignals.py
==============================================================================
--- python/branches/py3k/Lib/test/test_threadsignals.py (original)
+++ python/branches/py3k/Lib/test/test_threadsignals.py Sun Jan 2 17:16:09 2011
@@ -176,8 +176,9 @@
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)
More information about the Python-checkins
mailing list