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

fix: broken tests due to str(enum) changes in Python 3.11 #10323

Merged
merged 1 commit into from
Jun 27, 2023
Merged

Conversation

irataxy
Copy link
Contributor

@irataxy irataxy commented Jun 27, 2023

Description

There was a breaking change in python 3.11. See

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)

Fixes #10241

Checklist

  • Please merge this PR for me once it is approved

@irataxy irataxy requested review from a team as code owners June 27, 2023 15:09
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Jun 27, 2023
@m-strzelczyk m-strzelczyk merged commit 68fa027 into GoogleCloudPlatform:main Jun 27, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flaky tests: Video Transcoder Tests Failing in Python 3.11
3 participants