-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
gh-112769: test_zlib: Fix comparison of ZLIB_RUNTIME_VERSION with non-int suffix #112771
Conversation
…th non-int suffix 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: 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. Fixes python#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 the 3.12 branch. |
…th non-int suffix (pythonGH-112771) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
GH-112774 is a backport of this pull request to the 3.11 branch. |
…th non-int suffix (pythonGH-112771) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
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 commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813) 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 commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…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 commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
…SION with non-int suffix (pythonGH-112771) (pythonGH-112774) zlib-ng defines the version as "1.3.0.zlib-ng". (cherry picked from commit d384813)
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 the 3.10 branch. |
GH-119566 is a backport of this pull request to the 3.9 branch. |
GH-119567 is a backport of this pull request to the 3.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 commit d384813)
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