From 6a4f95b7cdd78061604a524d5cc4ea3c2c5cb229 Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Thu, 21 Sep 2023 12:35:30 +0200 Subject: [PATCH] Now we see errors pre Python 3.9 --- python/test/test_action_script.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/python/test/test_action_script.py b/python/test/test_action_script.py index 3ea94fdc..0da9a441 100644 --- a/python/test/test_action_script.py +++ b/python/test/test_action_script.py @@ -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):