]> granicus.if.org Git - python/commitdiff
Relax test condition a lot
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 2 Jan 2011 16:16:09 +0000 (16:16 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 2 Jan 2011 16:16:09 +0000 (16:16 +0000)
Lib/test/test_threadsignals.py

index e606a0ad033d9f9c90dffb7274cff65ea107535d..2462307d66c200d7bfe3b29752d562f3cf86caf9 100644 (file)
@@ -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)