-
Notifications
You must be signed in to change notification settings - Fork 6
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
ENH: compute hash without PYTHONHASHSED
#444
Conversation
@Zeyna777 it would be good to extract a separate maintenance PR from this PR that only updates the lock files and implements the formatting and fixes by Ruff (29b2d40...ffe52cc). git fetch origin
git checkout -b update-lock origin/main
git cherry-pick 70de299 9836f66 ffe52cc
git push origin update-lock -u Could you create that PR? Then it's easier to review this PR after that one has been merged. |
I'm currently investigating why the hashes are different on CI I tried on two different Linux machines (Almalinux 9 and WSL Ubuntu 24.04), but there the tests work. To quickly check, run: pytest tests/sympy/test_cache.py
See xxhash.com and the |
xxhash
libraryc68b70d
to
ffe52cc
Compare
Okay... so the hash is different depending on whether running all tests pytest or the specific test separately pytest tests/sympy/test_cache.py |
So, not using a fixture fixes it. I guess the moment of creating the model while running This is not good though... it suggests that the hash depends on the runtime of the program (?). It should only depend on the binary It seems that Footnotes
|
Alright, so |
0aaf83e
to
a1d4c94
Compare
3b704b2
to
0753efd
Compare
PYTHONHASHSED
Closes #443