Skip to content

Commit

Permalink
Now we see errors pre Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Sep 21, 2023
1 parent f45761c commit 6a4f95b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions python/test/test_action_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,9 +1148,15 @@ def test_main(self):
# Publisher.publish is expected to have been called with these arguments
results, cases, conclusion = m.call_args_list[0].args
self.assertEqual(145, results.files)
self.assertEqual(735, results.suites)
self.assertEqual(735, len(results.suite_details))
self.assertEqual(1811, len(cases))
if Version(sys.version.split(' ')[0]) < Version('3.9.0') and sys.platform.startswith('darwin'):
# on macOS and Python 3.10 and above we see one particular error
self.assertEqual(731, results.suites)
self.assertEqual(731, len(results.suite_details))
self.assertEqual(1811, len(cases))
else:
self.assertEqual(735, results.suites)
self.assertEqual(735, len(results.suite_details))
self.assertEqual(1811, len(cases))
self.assertEqual('failure', conclusion)

def test_main_fork_pr_check_wo_summary(self):
Expand Down

0 comments on commit 6a4f95b

Please sign in to comment.