work around flake8 annoyance

This commit is contained in:
Akuli 2022-01-23 14:33:05 +02:00
parent 365ea122bc
commit 9fb528fb09
1 changed files with 9 additions and 2 deletions

View File

@ -400,6 +400,7 @@ class TestTerminal:
""" """
) )
long_reason = "cannot do foobar because baz is missing due to I don't know what"
common_output = [ common_output = [
"test_verbose_skip_reason.py::test_1 SKIPPED (123) *", "test_verbose_skip_reason.py::test_1 SKIPPED (123) *",
"test_verbose_skip_reason.py::test_2 XPASS (456) *", "test_verbose_skip_reason.py::test_2 XPASS (456) *",
@ -426,8 +427,14 @@ class TestTerminal:
result.stdout.fnmatch_lines( result.stdout.fnmatch_lines(
common_output 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) *"
),
] ]
) )