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
d37c8ea9
Commit
d37c8ea9
authored
Jun 08, 2020
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Maybe don't want the added gevent.idle()
parent
4fb1973c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
src/gevent/_sslgte279.py
src/gevent/_sslgte279.py
+1
-1
src/gevent/tests/test__socket.py
src/gevent/tests/test__socket.py
+0
-1
src/gevent/tests/test__threading_2.py
src/gevent/tests/test__threading_2.py
+3
-3
No files found.
src/gevent/_sslgte279.py
View file @
d37c8ea9
...
...
@@ -19,7 +19,7 @@ _ssl = __ssl__._ssl # pylint:disable=no-member
import
errno
from
gevent._socket2
import
socket
from
gevent._socket2
import
AF_INET
from
gevent._socket2
import
AF_INET
# pylint:disable=no-name-in-module
from
gevent.socket
import
timeout_default
from
gevent.socket
import
create_connection
from
gevent.socket
import
error
as
socket_error
...
...
src/gevent/tests/test__socket.py
View file @
d37c8ea9
...
...
@@ -225,7 +225,6 @@ class TestTCP(greentest.TestCase):
raise
log
(
"Client will close"
)
client
.
close
()
gevent
.
idle
()
finally
:
server
.
join
(
10
)
assert
not
server
.
is_alive
()
...
...
src/gevent/tests/test__threading_2.py
View file @
d37c8ea9
...
...
@@ -394,12 +394,12 @@ class ThreadTests(unittest.TestCase):
warnings
.
simplefilter
(
'ignore'
,
DeprecationWarning
)
# get/set checkinterval are deprecated in Python 3,
# and removed in Python 3.9
old_interval
=
sys
.
getcheckinterval
()
old_interval
=
sys
.
getcheckinterval
()
# pylint:disable=no-member
try
:
for
i
in
xrange
(
1
,
100
):
# Try a couple times at each thread-switching interval
# to get more interleavings.
sys
.
setcheckinterval
(
i
//
5
)
sys
.
setcheckinterval
(
i
//
5
)
# pylint:disable=no-member
t
=
threading
.
Thread
(
target
=
lambda
:
None
)
t
.
start
()
t
.
join
()
...
...
@@ -407,7 +407,7 @@ class ThreadTests(unittest.TestCase):
self
.
assertFalse
(
t
in
l
,
"#1703448 triggered after %d trials: %s"
%
(
i
,
l
))
finally
:
sys
.
setcheckinterval
(
old_interval
)
sys
.
setcheckinterval
(
old_interval
)
# pylint:disable=no-member
if
not
hasattr
(
sys
,
'pypy_version_info'
):
def
test_no_refcycle_through_target
(
self
):
...
...
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