]> granicus.if.org Git - python/commitdiff
Issue #20114: Double timeout in test_semaphore_tracker() to reduce
authorRichard Oudkerk <roudkerk@google.com>
Fri, 21 Feb 2014 22:29:58 +0000 (22:29 +0000)
committerRichard Oudkerk <roudkerk@google.com>
Fri, 21 Feb 2014 22:29:58 +0000 (22:29 +0000)
chance of sporadic failures.

Lib/test/_test_multiprocessing.py

index 06d3ca97fc34643a85bf4bafbe5411730a29e07c..8eb57fe87e7a6548117a30f21144b16452bc7470 100644 (file)
@@ -3651,7 +3651,7 @@ class TestSemaphoreTracker(unittest.TestCase):
         _multiprocessing.sem_unlink(name1)
         p.terminate()
         p.wait()
-        time.sleep(1.0)
+        time.sleep(2.0)
         with self.assertRaises(OSError) as ctx:
             _multiprocessing.sem_unlink(name2)
         # docs say it should be ENOENT, but OSX seems to give EINVAL