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

upgrade pytest #4171

Merged
merged 2 commits into from
Sep 12, 2024
Merged

upgrade pytest #4171

merged 2 commits into from
Sep 12, 2024

Conversation

matejcik
Copy link
Contributor

This resolves a slew of warnings you get when you are on Python 3.11 or 3.12 while running tests.

We don't need it now because our nix shell is at 3.10, but we'll be happy to have it once we upgrade.

@matejcik matejcik self-assigned this Sep 11, 2024
Copy link

github-actions bot commented Sep 11, 2024

legacy UI changes device test(screens) main(screens)

Copy link

github-actions bot commented Sep 11, 2024

core UI changes device test click test persistence test
T2T1 Model T test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
T3B1 Safe 3 test(screens) main(screens) test(screens) main(screens) 2724
T3T1 test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
All main(screens)

to get rid of python 3.14 deprecation warnings
Python 3.11 changed IntEnum.__str__ to return the number instead of the
enum value name. This breaks fixtures.json because pytest uses
str(value) to generate the test identifier names, and in a lot of places
our identifiers use the enum values.

This override of `_idval_from_value` explicitly generates a name from
the IntEnum instead of using the __str__ implementation.
@matejcik matejcik merged commit b9a104d into main Sep 12, 2024
9 of 10 checks passed
@matejcik matejcik deleted the matejcik/newpytest branch September 12, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Approved
Development

Successfully merging this pull request may close these issues.

2 participants