-
Notifications
You must be signed in to change notification settings - Fork 3
simplify wait_readable loop + notify_closing #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
ac08333
9236831
cddb572
ce2455d
532a63f
8ec402b
1cee706
670f08e
e4dd540
4c50edb
5382468
acef5cc
3c0dbcb
96ae494
14fff64
e003f3d
9bd72c9
e19273c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,7 +66,7 @@ def context(contexts): | |
|
|
||
|
|
||
| @pytest.fixture | ||
| def sockets(contexts): | ||
| async def sockets(contexts): | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why does it have to be async?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the sockets.close() need to be called with the same running event loop that they are opened with. A sync fixture the close will happen outside the event loop and fail
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| sockets = [] | ||
| yield sockets | ||
| # ensure any tracked sockets get their contexts cleaned up | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.