-
Notifications
You must be signed in to change notification settings - Fork 560
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
Low probability failure in test/test_extras/test_infixowl/test_restriction.py::test_restriction_str_and_hash
#2030
Labels
bug
Something isn't working
Comments
Output from my computer:
|
It's my failure, I'm just guessing at how to test the result, hence the relative weakness of the length test - largely because I was merely focused on coverage, I assume |
Merged
8 tasks
aucampia
pushed a commit
that referenced
this issue
Jul 18, 2022
Maintenance-positive changes recommended by [flake8-bugbear](https://pypi.org/project/flake8-bugbear/), mostly explicitly indicating unused loop variables with a prefixing underscore (it identified one case where _none_ of the loop variables were being used) and a couple of don't-use-mutable-objects-as-args instances. 1. Added leading underscore to unused loop variables, removed mutable objects from args, (replacing with None and then performing an explicit “if None” assignment in the body of the method). 2. Swapped out an excessively weak, coverage-motivated length test of __hash__() (which was causing intermittent test failures) for an equality test of two runs, fixes issue #2030
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Failures can be seen in these GitHub actions runs:
This command seems to reproduce this failure at least once, I got 3 failures on my last run:
I'm guessing this is somehow related to python hash value which by default will be different for different instances.
CC: @gjhiggins
The text was updated successfully, but these errors were encountered: