Author: Manuel Jacob <[email protected]>
Branch: py3k
Changeset: r77866:906fd02db149
Date: 2015-06-04 17:27 +0200
http://bitbucket.org/pypy/pypy/changeset/906fd02db149/

Log:    Try to make tests with threads and signals more reliable.

diff --git a/pypy/module/thread/test/test_lock.py 
b/pypy/module/thread/test/test_lock.py
--- a/pypy/module/thread/test/test_lock.py
+++ b/pypy/module/thread/test/test_lock.py
@@ -207,6 +207,8 @@
             assert result
         finally:
             signal.signal(signal.SIGUSR1, old_handler)
+            for i in range(50):
+                time.sleep(0.1)
 
     def test_lock_acquire_retries_on_intr(self):
         import _thread
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to