Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
1642b630
Commit
1642b630
authored
Dec 17, 2014
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
test/tests/dangling_thread.py
test/tests/dangling_thread.py
+3
-0
test/tests/fork.py
test/tests/fork.py
+9
-0
No files found.
test/tests/dangling_thread.py
View file @
1642b630
# 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
...
...
test/tests/fork.py
View file @
1642b630
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment