Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-112769: test_zlib: Fix comparison of ZLIB_RUNTIME_VERSION with non-int suffix#112771
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…th non-int suffixzlib-ng defines the version as "1.3.0.zlib-ng".https://github.com/zlib-ng/zlib-ng/blob/f3211aba349a1d4781d0d41cb00d29fb8325af06/zlib.h.in#L61test.test_zlib.CompressObjectTestCase.test_flushes blew up with: Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.12.0/Lib/test/test_zlib.py", line 477, in test_flushes ver = tuple(int(v) for v in zlib.ZLIB_RUNTIME_VERSION.split('.')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/Python-3.12.0/Lib/test/test_zlib.py", line 477, in <genexpr> ver = tuple(int(v) for v in zlib.ZLIB_RUNTIME_VERSION.split('.')) ^^^^^^ ValueError: invalid literal for int() with base 10: 'zlib-ng'This reuses logic from another test.Fixespython#112769
Thanks@hroncok for the PR, and@serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
GH-112773 is a backport of this pull request to the3.12 branch. |
…th non-int suffix (pythonGH-112771)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)Co-authored-by: Miro Hrončok <miro@hroncok.cz>
GH-112774 is a backport of this pull request to the3.11 branch. |
…th non-int suffix (pythonGH-112771)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)Co-authored-by: Miro Hrončok <miro@hroncok.cz>
hroncok commentedDec 5, 2023
Thanks@serhiy-storchaka |
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)Co-authored-by: Miro Hrončok <miro@hroncok.cz>
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…th non-int suffix (pythonGH-112771)zlib-ng defines the version as "1.3.0.zlib-ng".
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
Thanks@hroncok for the PR, and@serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry,@hroncok and@serhiy-storchaka, I could not cleanly backport this to |
GH-119565 is a backport of this pull request to the3.10 branch. |
GH-119566 is a backport of this pull request to the3.9 branch. |
GH-119567 is a backport of this pull request to the3.8 branch. |
…th non-int suffix (pythonGH-112771)zlib-ng defines the version as "1.3.0.zlib-ng".
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774)zlib-ng defines the version as "1.3.0.zlib-ng".(cherry picked from commitd384813)
Uh oh!
There was an error while loading.Please reload this page.
zlib-ng defines the version as "1.3.0.zlib-ng".
https://github.com/zlib-ng/zlib-ng/blob/f3211aba349a1d4781d0d41cb00d29fb8325af06/zlib.h.in#L61
test.test_zlib.CompressObjectTestCase.test_flushes blew up with:
This reuses logic from another test.
Fixes#112769