Skip to content

Commit

Permalink
Merge pull request #2715 from pygame-community/fix-test-runner-bug-re…
Browse files Browse the repository at this point in the history
…verssion

Adapt test runner count tweak to be 3.12.1 only
  • Loading branch information
Starbuck5 committed Feb 18, 2024
1 parent b40742d commit 3326c57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_utils/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@ def run_test(
print(output.read())
output.seek(0)

# change in way skipped tested counted from Python 3.12.1 onwards
# change in way skipped tested counted in Python 3.12.1 only (so far)
# This was changed and then reverted in 3.12.2
# https://github.com/python/cpython/pull/114994
tests_run_and_skipped = results.testsRun
if sys.version_info.minor >= 13 or (
sys.version_info.minor == 12 and sys.version_info.micro >= 1
):
if sys.version_info.minor == 12 and sys.version_info.micro == 1:
tests_run_and_skipped += len(results.skipped)

results = {
Expand Down

0 comments on commit 3326c57

Please sign in to comment.