Skip to content

chore(deps): Update pytest version in upstream-requirements-py311.txt #776

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

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

alex
Copy link
Contributor

@alex alex commented May 12, 2024

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@alex alex requested a review from a team as a code owner May 12, 2024 00:16
@alex alex changed the title Update pytest version in upstream-requirements-py311.txt chore(deps): Update pytest version in upstream-requirements-py311.txt May 12, 2024
texastony
texastony previously approved these changes May 12, 2024
@@ -22,13 +22,12 @@


class TestWarnDeprecatedPython:
def test_happy_version(self):
def test_happy_version(self, recwarn):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Sorry, I do not follow.
Why is this argument necessary?

Is this some magic incantation to tell pytest to record warnings?
And then assert that none were recorded?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, these are called fixtures in pytest, see https://docs.pytest.org/en/8.2.x/how-to/capture-warnings.html#recwarn

This change was necessary because pytest.warns(None) is not allowed anymore.

@texastony
Copy link
Contributor

This PR's CI is blocked on fixing the Mac OS CI.
We need to refactor the Mac OS tests to either:

  • pass with Apple's CPU
  • use the older GitHub Action runner Mac OS version that only uses Intel CPUs

@texastony texastony merged commit 4dd6e0b into aws:master Jul 9, 2024
40 checks passed
@alex alex deleted the patch-1 branch July 9, 2024 22:37
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.

3 participants