Skip to content

Commit

Permalink
Merge pull request #5830 from clebergnu/python_3_12_unittest_skip
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja authored Dec 14, 2023
2 parents 884a8c4 + 3b2a46e commit 375d035
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions selftests/unit/nrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,18 @@ def test_runner_python_unittest_skip(self):
runner_klass = runnable.pick_runner_class()
runner = runner_klass()
results = [status for status in runner.run(runnable)]
output1 = (
b"----------------------------------------------------------------------\n"
b"Ran 1 test in "
)
output2 = b"s\n\nOK (skipped=1)\n"
if sys.version_info < (3, 12, 1):
output1 = (
b"----------------------------------------------------------------------\n"
b"Ran 1 test in "
)
output2 = b"s\n\nOK (skipped=1)\n"
else:
output1 = (
b"----------------------------------------------------------------------\n"
b"Ran 0 tests in "
)
output2 = b"\n\nNO TESTS RAN (skipped=1)\n"
output = results[-2]
result = results[-1]
self.assertEqual(result["status"], "finished")
Expand Down

0 comments on commit 375d035

Please sign in to comment.