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
c79a1978
Commit
c79a1978
authored
Dec 16, 2020
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PyPy/Win is flaky. Cant reproduce on any other PyPy
parent
d2111653
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
docs/changes/1698.bugfix
docs/changes/1698.bugfix
+2
-1
src/gevent/testing/__init__.py
src/gevent/testing/__init__.py
+1
-0
src/gevent/tests/test__semaphore.py
src/gevent/tests/test__semaphore.py
+1
-0
No files found.
docs/changes/1698.bugfix
View file @
c79a1978
...
...
@@ -2,7 +2,8 @@ Improve the ability to use monkey-patched locks, and
`gevent.lock.BoundedSemaphore`, across threads, especially when the
various threads might not have a gevent hub or any other active
greenlets. In particular, this handles some cases that previously
raised ``LoopExit`` or would hang.
raised ``LoopExit`` or would hang. Note that this may not be reliable
on PyPy on Windows; such an environment is not currently recommended.
The semaphore tries to avoid creating a hub if it seems unnecessary,
automatically creating one in the single-threaded case when it would
...
...
src/gevent/testing/__init__.py
View file @
c79a1978
...
...
@@ -93,6 +93,7 @@ from .skipping import skipOnCI
from
.skipping
import
skipOnPyPy3OnCI
from
.skipping
import
skipOnPyPy
from
.skipping
import
skipOnPyPyOnCI
from
.skipping
import
skipOnPyPyOnWindows
from
.skipping
import
skipOnPyPy3
from
.skipping
import
skipIf
from
.skipping
import
skipUnless
...
...
src/gevent/tests/test__semaphore.py
View file @
c79a1978
...
...
@@ -238,6 +238,7 @@ class TestSemaphoreMultiThread(greentest.TestCase):
def
assertOneHasNoHub
(
self
,
sem
):
self
.
assertIsNone
(
sem
.
hub
,
sem
)
@
greentest
.
skipOnPyPyOnWindows
(
"Flaky there; can't reproduce elsewhere"
)
def
test_dueling_threads
(
self
,
acquire_args
=
(),
create_hub
=
None
):
# pylint:disable=too-many-locals,too-many-statements
...
...
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