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
11360103
Commit
11360103
authored
Jan 19, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The cython extension should stop itself when closed too.
parent
2cfffde3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
src/gevent/_ffi/watcher.py
src/gevent/_ffi/watcher.py
+1
-0
src/gevent/libev/corecext.ppyx
src/gevent/libev/corecext.ppyx
+1
-1
src/greentest/test__event.py
src/greentest/test__event.py
+2
-2
src/greentest/test__fileobject.py
src/greentest/test__fileobject.py
+0
-1
No files found.
src/gevent/_ffi/watcher.py
View file @
11360103
...
...
@@ -342,6 +342,7 @@ class watcher(object):
def
_watcher_set_data
(
self
,
the_watcher
,
data
):
# This abstraction exists for the sole benefit of
# libuv.watcher.stat, which "subclasses" uv_handle_t.
# Can we do something to avoid this extra function call?
the_watcher
.
data
=
data
return
data
...
...
src/gevent/libev/corecext.ppyx
View file @
11360103
...
...
@@ -794,7 +794,7 @@ cdef public class watcher [object PyGeventWatcherObject, type PyGeventWatcher_Ty
return ''
def close(self):
pass
self.stop()
def __enter__(self):
return self
...
...
src/greentest/test__event.py
View file @
11360103
...
...
@@ -206,10 +206,10 @@ class TestWait(greentest.TestCase):
else
:
expected_len
=
min
(
max_len
,
self
.
timeout
/
self
.
period
)
if
self
.
count
is
None
:
assert
sender
.
ready
(
)
self
.
assertTrue
(
sender
.
ready
(),
sender
)
else
:
expected_len
=
min
(
self
.
count
,
expected_len
)
assert
not
sender
.
ready
(
)
self
.
assertFalse
(
sender
.
ready
(),
sender
)
sender
.
kill
()
self
.
assertEqual
(
expected_len
,
len
(
results
),
(
expected_len
,
len
(
results
),
results
))
...
...
src/greentest/test__fileobject.py
View file @
11360103
...
...
@@ -27,7 +27,6 @@ class Test(greentest.TestCase):
def
_do_test_del
(
self
,
pipe
,
**
kwargs
):
r
,
w
=
pipe
s
=
FileObject
(
w
,
'wb'
,
**
kwargs
)
ts
=
type
(
s
)
s
.
write
(
b'x'
)
try
:
s
.
flush
()
...
...
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