Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
9661f035
Commit
9661f035
authored
Apr 16, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Notes on the atomic condition of test__threading_vs_settrace on PyPy.
parent
eea53210
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
gevent/_semaphore.py
gevent/_semaphore.py
+2
-4
known_failures.py
known_failures.py
+8
-1
No files found.
gevent/_semaphore.py
View file @
9661f035
...
...
@@ -124,12 +124,10 @@ class Semaphore(object):
assert
self
.
counter
>=
0
return
True
_py3k_acquire
=
acquire
# PyPy needs this; it must be static for Cython
def
__enter__
(
self
):
self
.
acquire
()
def
__exit__
(
self
,
*
args
):
self
.
release
()
if
PYPY
:
Semaphore
.
_py3k_acquire
=
Semaphore
.
acquire
known_failures.py
View file @
9661f035
...
...
@@ -69,7 +69,14 @@ if PYPY:
# BUGS:
# in CPython we compile _semaphore.py with Cython to make its operation atomic
# how to do atomic operations on PyPy?
# how to do atomic operations on PyPy?.
# Note that PyPy will compile and load the Cython version of gevent._semaphore,
# thus fixing this test case (making it load it is a manual process now because
# _semaphore.py still exists and PyPy prefers that to the .so---some things would have
# to be renamed to make it work automatically). However, on at least one machine, the Cython
# version causes the test suite to run slower: ~2:52 vs ~2:37. Is that worth the
# non-traceability? (Is it even repeatable? Possibly not; a lot of the test time is spent in,
# e.g., test__socket_dns.py doing network stuff.)
'test__threading_vs_settrace.py'
,
...
...
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