Skip to content
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

Parametrize Python versions in functional tests #10

Merged
merged 5 commits into from
Jan 15, 2024

Conversation

KAUTH
Copy link
Owner

@KAUTH KAUTH commented Dec 17, 2023

  • We parametrize the Python version used in the Dockerfile for the functional tests (using build arguments) so that we can test in Python 3.9, 3.10, and 3.11 Python versions.
  • Fix Python 3.11 environments that were breaking and that we can now test with the above test improvements

Fixes #9

@KAUTH KAUTH added the enhancement New feature or request label Dec 17, 2023
KAUTH added 5 commits January 15, 2024 21:08
From What’s New In Python 3.11:

> Changed Enum.format() (the default for format(), str.format() and f-strings)
to always produce the same result as Enum.str(): for enums inheriting from ReprEnum
it will be the member’s value; __for all other enums it will be the enum and member
name (e.g. Color.RED).__

For this reason we specifically use the enum's value where necessary.

Fixes #9
This way we can parametrize the Python version used in the
functional tests Docker image.
We parametrize for only 3 Python versions for now, "3.9", "3.10",
"3.11".
@KAUTH KAUTH force-pushed the parametrize-python-versions-in-functional-tests branch from 0eb1714 to 00eabe3 Compare January 15, 2024 20:49
@KAUTH KAUTH self-assigned this Jan 15, 2024
@KAUTH KAUTH merged commit 9ad6e8f into main Jan 15, 2024
8 checks passed
@KAUTH KAUTH deleted the parametrize-python-versions-in-functional-tests branch January 15, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python 3.11 breaks f-String cast
1 participant