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

Adapt test runner count tweak to be 3.12.1 only #2715

Merged
merged 1 commit into from
Feb 11, 2024

Conversation

MyreMylar
Copy link
Member

So when 3.12.1 released we had to add a tweak to our test running machinery because CPython stopped counting skipped tests as 'run'. Apparently this change has now been reverted for 3.12.2 (and 3.13) so we are back to how it was before.

This was causing our CircleCI runs to fail because that CI was grabbing the latest release of 3.12.2. I swear if they change this back again...

@MyreMylar MyreMylar requested a review from a team as a code owner February 11, 2024 20:12
@MyreMylar
Copy link
Member Author

This is the revert commit:

python/cpython#114994

With the relevant changes being in this chunk here:

https://github.com/python/cpython/blob/e1552fd19de17e7a6daa3c2a6d1ca207bb8eaf8e/Lib/unittest/case.py#L609-L620

Moving:

result.startTest(self)

...before or after the skip test detecting block there that returns if a test is skipped.

Copy link
Member

@oddbookworm oddbookworm left a comment

Choose a reason for hiding this comment

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

LGTM lol

Copy link
Member

@Starbuck5 Starbuck5 left a comment

Choose a reason for hiding this comment

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

Thanks!

@Starbuck5 Starbuck5 merged commit be4918b into main Feb 11, 2024
29 checks passed
@Starbuck5 Starbuck5 deleted the fix-test-runner-bug-reverssion branch February 11, 2024 23:58
@Starbuck5 Starbuck5 added this to the 2.5.0 milestone Feb 11, 2024
Starbuck5 added a commit that referenced this pull request Feb 18, 2024
…verssion

Adapt test runner count tweak to be 3.12.1 only
@Starbuck5 Starbuck5 modified the milestones: 2.5.0, 2.4.1 Feb 20, 2024
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.

None yet

3 participants