Commit a3e59d0a authored by Jérome Perrin's avatar Jérome Perrin

test_promise: adjust test for python 3.9

parent 5f5729b1
Pipeline #25435 failed with stage
in 0 seconds
...@@ -340,8 +340,12 @@ class RunPromise(GenericPromise): ...@@ -340,8 +340,12 @@ class RunPromise(GenericPromise):
with self.assertRaises(TypeError) as exc: with self.assertRaises(TypeError) as exc:
promise_module = promise_process._loadPromiseModule() promise_module = promise_process._loadPromiseModule()
promise = promise_module.RunPromise({}) promise = promise_module.RunPromise({})
self.assertEqual(str(exc.exception),
"Can't instantiate abstract class RunPromise with abstract methods sense") expected_assertion_message = "Can't instantiate abstract class RunPromise with abstract method sense"
if sys.version_info < (3, 9):
expected_assertion_message = "Can't instantiate abstract class RunPromise with abstract methods sense"
self.assertEqual(str(exc.exception), expected_assertion_message)
def test_promise_extra_config(self): def test_promise_extra_config(self):
promise_name = 'my_promise_extra.py' promise_name = 'my_promise_extra.py'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment