Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-112769: test_zlib: Fix comparison of ZLIB_RUNTIME_VERSION with 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/cpython#112769
- Loading branch information