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
461261b7
Commit
461261b7
authored
Apr 10, 2019
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow time to propagate (PyPy).
parent
fad6b21f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/gevent/tests/test__refcount.py
src/gevent/tests/test__refcount.py
+9
-5
No files found.
src/gevent/tests/test__refcount.py
View file @
461261b7
...
...
@@ -142,9 +142,15 @@ class Test(greentest.TestCase):
client
=
Client
(
server
.
server_port
)
start_new_thread
(
client
.
make_request
)
# Wait until we do our business
while
server
.
socket
is
not
None
:
sleep
(
0.01
)
# Wait until we do our business; we will always close
# the server; We may also close the client.
# On PyPy, we may not actually see the changes they write to
# their dicts immediately.
for
obj
in
server
,
client
:
if
obj
is
None
:
continue
while
obj
.
socket
is
not
None
:
sleep
(
0.01
)
# If we have a client, then we should have data
if
run_client
:
...
...
@@ -153,7 +159,6 @@ class Test(greentest.TestCase):
return
wref_to_hidden_server_socket
def
run_and_check
(
self
,
run_client
):
wref_to_hidden_server_socket
=
self
.
run_interaction
(
run_client
=
run_client
)
greentest
.
gc_collect_if_needed
()
...
...
@@ -170,7 +175,6 @@ class Test(greentest.TestCase):
self
.
run_and_check
(
True
)
self
.
run_and_check
(
True
)
def
test_timeout_exit
(
self
):
self
.
run_and_check
(
False
)
self
.
run_and_check
(
False
)
...
...
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