-
-
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
test.test_zlib.CompressObjectTestCase.test_flushes fails to parse ZLIB_VERSION with zlib-ng #112769
Comments
I'm working on a PR. |
Here it is: #112771 |
serhiy-storchaka
pushed a commit
that referenced
this issue
Dec 5, 2023
…-int suffix (GH-112771) zlib-ng defines the version as "1.3.0.zlib-ng".
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Dec 5, 2023
…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>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Dec 5, 2023
…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 for the report and fix @hroncok! |
serhiy-storchaka
pushed a commit
that referenced
this issue
Dec 5, 2023
serhiy-storchaka
pushed a commit
that referenced
this issue
Dec 5, 2023
befeleme
pushed a commit
to fedora-python/cpython
that referenced
this issue
Jan 25, 2024
…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)
befeleme
pushed a commit
to fedora-python/cpython
that referenced
this issue
Jan 25, 2024
…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>
befeleme
pushed a commit
to fedora-python/cpython
that referenced
this issue
Jan 25, 2024
…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)
befeleme
pushed a commit
to fedora-python/cpython
that referenced
this issue
Jan 25, 2024
…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)
befeleme
pushed a commit
to fedora-python/cpython
that referenced
this issue
Jan 25, 2024
…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)
aisk
pushed a commit
to aisk/cpython
that referenced
this issue
Feb 11, 2024
…th non-int suffix (pythonGH-112771) zlib-ng defines the version as "1.3.0.zlib-ng".
stratakis
pushed a commit
to stratakis/cpython
that referenced
this issue
Feb 27, 2024
…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)
hroncok
added a commit
to fedora-python/cpython
that referenced
this issue
Mar 7, 2024
…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)
stratakis
pushed a commit
to stratakis/cpython
that referenced
this issue
Mar 11, 2024
…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)
stratakis
pushed a commit
to stratakis/cpython
that referenced
this issue
Mar 11, 2024
…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)
stratakis
pushed a commit
to stratakis/cpython
that referenced
this issue
Mar 20, 2024
…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)
hrnciar
pushed a commit
to fedora-python/cpython
that referenced
this issue
Mar 20, 2024
…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)
hrnciar
pushed a commit
to fedora-python/cpython
that referenced
this issue
Mar 20, 2024
…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)
hrnciar
pushed a commit
to fedora-python/cpython
that referenced
this issue
Mar 20, 2024
…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)
stratakis
pushed a commit
to stratakis/cpython
that referenced
this issue
Mar 20, 2024
…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)
stratakis
pushed a commit
to stratakis/cpython
that referenced
this issue
Mar 20, 2024
…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)
stratakis
pushed a commit
to stratakis/cpython
that referenced
this issue
Mar 20, 2024
…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)
stratakis
pushed a commit
to stratakis/cpython
that referenced
this issue
Mar 25, 2024
…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)
hroncok
added a commit
to fedora-python/cpython
that referenced
this issue
Mar 26, 2024
…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)
mcepl
pushed a commit
to openSUSE-Python/cpython
that referenced
this issue
Apr 2, 2024
…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)
jessecomeau87
pushed a commit
to jessecomeau87/Python
that referenced
this issue
May 20, 2024
…-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/cpython#112769
This was referenced May 25, 2024
This issue is now affecting some older buildbots. Created backport PRs for 3.10, 3.9, and 3.8 security branches. |
ambv
pushed a commit
that referenced
this issue
May 30, 2024
ambv
pushed a commit
that referenced
this issue
May 30, 2024
I closed issue gh-98567 as a duplicate of this issue. |
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
…th non-int suffix (pythonGH-112771) zlib-ng defines the version as "1.3.0.zlib-ng".
hrnciar
pushed a commit
to fedora-python/cpython
that referenced
this issue
Sep 9, 2024
…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)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
Hello. Fedora is switching from zlib to zlib-ng. https://fedoraproject.org/wiki/Changes/ZlibNGTransition
zlib-ng defines
ZLIB_VERSION
as"1.3.0.zlib-ng"
:https://github.com/zlib-ng/zlib-ng/blob/f3211aba349a1d4781d0d41cb00d29fb8325af06/zlib.h.in#L61
And
test.test_zlib.CompressObjectTestCase.test_flushes
fails to parse it a sequence of dot-separated integers:cpython/Lib/test/test_zlib.py
Line 476 in 11d88a1
Another test in this file already handles this differently via 4c7108a:
cpython/Lib/test/test_zlib.py
Lines 798 to 804 in 11d88a1
This could be made a function, so both the tests that need to compare the version could re-use it.
CPython versions tested on:
3.12, 3.13, CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: