Skip to content

tests: Rename compression to fix Python 3.14 compatibility#105

Closed
mgorny wants to merge 2 commits intopkgcore:masterfrom
mgorny:py314
Closed

tests: Rename compression to fix Python 3.14 compatibility#105
mgorny wants to merge 2 commits intopkgcore:masterfrom
mgorny:py314

Conversation

@mgorny
Copy link
Copy Markdown
Contributor

@mgorny mgorny commented May 31, 2025

Rename tests/compression directory to avoid an import failure with Python 3.14, that has introduced a compression stdlib package.

The tests still fail because of python/cpython#134971

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant