Skip to content

Conversation

@mgetka
Copy link
Contributor

@mgetka mgetka commented Aug 14, 2020

Handle indefinite timeout for PUBSUB commands.

Indefinite timeout test is disabled for py-redis 3.2. This version introduced new default selector based on select.poll, which itself supports indefinite polling via setting the timeout to None, but py-redis in this version scales the timeout by 1000 without type checking before passing it to the polling object, which renders this feature unavailable. Affected versions are 3.2.0 and 3.2.1, so the whole 3.2 family.

Fixes #274

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 95.89% when pulling fb9b1a0 on mgetka:master into 9efdecd on jamesls:master.

Copy link
Collaborator

@bmerry bmerry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good. I'm not sure why Coveralls is saying coverage decreased (it can't find the source file), so I'm going to assume that it's due to the Hypothesis tests being randomly seeded.

@bmerry bmerry merged commit 078bb0b into jamesls:master Aug 15, 2020
@mgetka
Copy link
Contributor Author

mgetka commented Aug 15, 2020

I would blame hypothesis as well. BTW, on my fork’s pipeline hypothesis produced some test cases pointing discrepancies between fake and real redis. Are you interested in receiving feedback with such test traces?

@bmerry
Copy link
Collaborator

bmerry commented Aug 15, 2020

Sure, file some bugs. I don't promise to do anything about it (particularly in the short term), but it's worth making a record when hypothesis occasionally finds a corner case.

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.

TypeError: '<=' not supported between instances of 'NoneType' and 'int', when using run_in_thread sleep_time=None

3 participants