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

chore(tests): unpin pytest #2702

Merged

Conversation

mfocko
Copy link
Member

@mfocko mfocko commented Jan 23, 2025

As the breaking change (deprecation) in pytest=8.1.1 has been already fixed in flexmock¹, unpin pytest and also install flexmock from the PyPI rather than RPM (to ensure the same behavior even if we switched back to the CentOS images).

Newer version of pytest introduces ‹PYTEST_VERSION› environment variable that can be used to detect whether the tests are being run or not, which is used in some safe-guards in the events-refactor².

¹ flexmock/flexmock#153
² #2590

@mfocko mfocko self-assigned this Jan 23, 2025
@mfocko mfocko requested a review from a team as a code owner January 23, 2025 14:43
As the breaking change (deprecation) in pytest=8.1.1 has been already
fixed in flexmock¹, unpin pytest and also install flexmock from the PyPI
rather than RPM (to ensure the same behavior even if we switched back to
the CentOS images).

Newer version of pytest introduces ‹PYTEST_VERSION› environment variable
that can be used to detect whether the tests are being run or not, which
is used in some safe-guards in the events-refactor².

¹ flexmock/flexmock#153
² packit#2590

Signed-off-by: Matej Focko <[email protected]>
@mfocko mfocko force-pushed the chore/pytest-flexmock branch from db1ed11 to 1fe6d25 Compare January 23, 2025 14:44
Copy link
Contributor

@mfocko mfocko added the mergeit When set, zuul wil gate and merge the PR. label Jan 23, 2025
Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/2354b61abe544103b2b3545cab75beb4

✔️ pre-commit SUCCESS in 1m 47s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 2dfec18 into packit:main Jan 23, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit When set, zuul wil gate and merge the PR.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants