[pypy-svn] pypy default: Sleep with a reference to 's' still around.

arigo commits-noreply at bitbucket.org
Wed Feb 2 16:33:40 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41569:aaa22145926c
Date: 2011-02-01 19:03 +0100
http://bitbucket.org/pypy/pypy/changeset/aaa22145926c/

Log:	Sleep with a reference to 's' still around.

diff --git a/pypy/translator/c/test/test_standalone.py b/pypy/translator/c/test/test_standalone.py
--- a/pypy/translator/c/test/test_standalone.py
+++ b/pypy/translator/c/test/test_standalone.py
@@ -964,6 +964,8 @@
             ident3 = new_thread()
             ident4 = new_thread()
             ident5 = new_thread()
+            # wait for 4 more seconds, which should be plenty of time
+            time.sleep(4)
             keepalive_until_here(s)
 
         def entry_point(argv):
@@ -977,8 +979,6 @@
             after()
             invoke_around_extcall(before, after)
             start_all_threads()
-            # wait for 4 more seconds, which should be plenty of time
-            time.sleep(4)
             # force freeing
             gc.collect()
             gc.collect()


More information about the Pypy-commit mailing list