You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Several coverage tests throw a warning from poetry because they always evaluate to True. This happens because non-empty tuples always evaluate as True, and the assert statement does not take parentheses (it is a keyword, not a function, in Python). Here is a list of assertions that always evaluate to True:
To Reproduce
I ran the tests using poetry, i.e. poetry run pytest --cov.
Expected behavior
I would expect these assert statements to evaluate True in a non-trivial manner.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: macOS 14.6.1
Python version: 3.10.14
Version 0.2.3 (installed via poetry)
Additional context
There are also two warnings associated with the test_resize_zero_size_source test, but since that should throw a ValueError, I'm not too worried here...
The text was updated successfully, but these errors were encountered:
Describe the bug
Several coverage tests throw a warning from poetry because they always evaluate to True. This happens because non-empty tuples always evaluate as True, and the
assert
statement does not take parentheses (it is a keyword, not a function, in Python). Here is a list of assertions that always evaluate to True:To Reproduce
I ran the tests using poetry, i.e.
poetry run pytest --cov
.Expected behavior
I would expect these assert statements to evaluate True in a non-trivial manner.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
There are also two warnings associated with the
test_resize_zero_size_source
test, but since that should throw a ValueError, I'm not too worried here...The text was updated successfully, but these errors were encountered: