Commit 1642b630 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Turn off the 'dangling-thread' test since it's not reliable in CPython

And turn off that part of the fork.py test as well
parent 56f6fbea
# skip-if: True
# - I don't think this test is reliable on CPython, even if we use the threading module
# Make sure that we can exit with threads running in the background.
from thread import start_new_thread
......
......@@ -6,11 +6,15 @@ import time
import os
counter = 0
done = 0
def daemon_thread():
global counter
while True:
for i in xrange(100):
counter += 1
if done:
counter = 0
break
time.sleep(0.0)
start_new_thread(daemon_thread, ())
......@@ -33,6 +37,11 @@ if pid:
print "parent waking up"
forceCollection()
done = True
while counter:
time.sleep(0.0)
time.sleep(0.01)
else:
print "child"
forceCollection()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment