-
Notifications
You must be signed in to change notification settings - Fork 4
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
Spinach no longer passes tests in Python >= 3.11 #29
Comments
0xDEC0DE
pushed a commit
to 0xDEC0DE/spinach
that referenced
this issue
Feb 28, 2024
Python 3.12 finally made good on their promise to start throwing errors when trying to use `random` with non-ints, so make a good-faith effort to do that. Remove a now-useless test for passing floats that should now be impossible to hit. Drive-by: update `tox.ini` to use moern syntax Partial fix for Issue NicolasLM#29
0xDEC0DE
pushed a commit
to 0xDEC0DE/spinach
that referenced
this issue
Feb 28, 2024
Python 3.12 finally made good on their promise to start throwing errors when trying to use `random` with non-ints, so make a good-faith effort to do that in all versions. Remove a now-useless test for passing floats that should now be impossible to hit. Partial fix for Issue NicolasLM#29
0xDEC0DE
pushed a commit
to 0xDEC0DE/spinach
that referenced
this issue
Feb 28, 2024
Newer Python runtimes do more stringent method signature checking, so use an actual Mock for dummy tasks rather than a "random" callable Partial fix for Issue NicolasLM#29
0xDEC0DE
pushed a commit
to 0xDEC0DE/spinach
that referenced
this issue
Feb 28, 2024
Newer Python runtimes do more stringent method signature checking, so use an actual Mock for dummy tasks rather than a "random" callable Partial fix for Issue NicolasLM#29
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
tox.ini
to useallowlist_externals
instead of the obsoletewhitelist_externals
tox
Expected result
Tests pass
Actual behavior
Python 3.11
Python 3.12
Miscellany
Tests DO pass when run against a Python 3.8 runtime
The text was updated successfully, but these errors were encountered: