tests: Rename compression to fix Python 3.14 compatibility#105
Closed
mgorny wants to merge 2 commits intopkgcore:masterfrom
Closed
tests: Rename compression to fix Python 3.14 compatibility#105mgorny wants to merge 2 commits intopkgcore:masterfrom
compression to fix Python 3.14 compatibility#105mgorny wants to merge 2 commits intopkgcore:masterfrom
Conversation
Rename `tests/compression` directory to avoid an import failure with Python 3.14, that has introduced a `compression` stdlib package. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Loosen the argparse exception check to fix tests with Python 3.14. Starting with Python 3.14, the exception is supposed to use single quotes rather than double quotes. However, due to python/cpython#134971 it currently does not include the name at all -- an easy way to get compatibility for both quoting variants and to work around the bug is to not check the name at all. Signed-off-by: Michał Górny <mgorny@gentoo.org>
gentoo-bot
pushed a commit
that referenced
this pull request
May 31, 2025
Rename `tests/compression` directory to avoid an import failure with Python 3.14, that has introduced a `compression` stdlib package. Signed-off-by: Michał Górny <mgorny@gentoo.org> Part-of: #105 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rename
tests/compressiondirectory to avoid an import failure with Python 3.14, that has introduced acompressionstdlib package.The tests still fail because of python/cpython#134971