diff --git a/testing/test_terminal.py b/testing/test_terminal.py index 6f926db34..3094649f3 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -400,6 +400,7 @@ class TestTerminal: """ ) + long_reason = "cannot do foobar because baz is missing due to I don't know what" common_output = [ "test_verbose_skip_reason.py::test_1 SKIPPED (123) *", "test_verbose_skip_reason.py::test_2 XPASS (456) *", @@ -426,8 +427,14 @@ class TestTerminal: result.stdout.fnmatch_lines( common_output + [ - "test_verbose_skip_reason.py::test_long_skip SKIPPED (cannot do foobar because baz is missing due to I don't know what) *", - "test_verbose_skip_reason.py::test_long_xfail XFAIL (cannot do foobar because baz is missing due to I don't know what) *", + ( + "test_verbose_skip_reason.py::test_long_skip SKIPPED" + " (cannot do foobar because baz is missing due to I don't know what) *" + ), + ( + "test_verbose_skip_reason.py::test_long_xfail XFAIL" + " (cannot do foobar because baz is missing due to I don't know what) *" + ), ] )