Skip to content

bpo-37252: Fix devpoll tests#14017

Merged
benjaminp merged 2 commits into
python:masterfrom
kulikjak:fix-devpoll-tests
Sep 11, 2019
Merged

bpo-37252: Fix devpoll tests#14017
benjaminp merged 2 commits into
python:masterfrom
kulikjak:fix-devpoll-tests

Conversation

@kulikjak

@kulikjak kulikjak commented Jun 12, 2019

Copy link
Copy Markdown
Contributor

test_devpoll currently ends with two failures with Python 3.8 on Solaris.

First one is wrong number of arguments to devpoll.register function (which thrown the same error as expected in 3.7 but now acts differently).

Second one is that register and modify no longer throw OverflowError when negative number is given as second argument, but rather a ValueError. I am not sure whether this is just a small semantics change or some bigger problem (documentation doesn't mention what error should be thrown).

So I fixed it by changing the expected thrown error but there might be other problem as well.

https://bugs.python.org/issue37252

@asvetlov

Copy link
Copy Markdown
Contributor

Would you point on commits that produced test failures?
git bisect can help

@kulikjak

Copy link
Copy Markdown
Contributor Author

I bisected Python and found out following:

Test was first broken with 6dc57e2 - it ends with ModuleNotFoundError: No module named 'select' error. It was later followed with 0e6e7a1 which did fixed the not found error, but now there are above mentioned problems.

@benjaminp

Copy link
Copy Markdown
Contributor

We don't have a Solaris buildbot any more, so we'll have to take your word for it.

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @kulikjak for the PR, and @benjaminp for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 11, 2019
(cherry picked from commit 95da826)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

GH-15948 is a backport of this pull request to the 3.8 branch.

matrixise pushed a commit that referenced this pull request Sep 11, 2019
(cherry picked from commit 95da826)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
DinoV pushed a commit to DinoV/cpython that referenced this pull request Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants