Skip to content

unix: moduselect: poll.mofify: Raise OSError(ENOENT) if object is not in poller #4197

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

Closed
wants to merge 3 commits into from

Conversation

pfalcon
Copy link
Contributor

@pfalcon pfalcon commented Sep 28, 2018

Previously, the function silently succeeded. The new behavior is consistent
with both baremetal uselect implementation and CPython3.

Paul Sokolovsky added 3 commits September 28, 2018 22:45
… in poller

Previously, the function silently succeeded. The new behavior is consistent
with both baremetal uselect implementation and CPython3.
This test doesn't check the actual I/O behavior, just "static" invariants
like behavior on duplicate calls or calls when I/O object is not registered
with poller.
E.g., register() can be called again for the same object, while modify()
will raise exception if object was not register()ed before.
@pfalcon
Copy link
Contributor Author

pfalcon commented Sep 28, 2018

This addresses the obvious case of #1550 (comment), together with a test and doc updates.

@dpgeorge
Copy link
Member

dpgeorge commented Oct 5, 2018

Thanks, looks good. Indeed the new test passes on existing bare-metal targets. Merged in d251f26

@dpgeorge dpgeorge closed this Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants