Skip to content

Commit 568ce9c

Browse files
committed
tests: re-harden test_remote_usage_prog
The meaning of the test is to check that "prog" is not "-c", which was weakened in 93780dc.
1 parent 6fd5b56 commit 568ce9c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

testing/test_remote.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -286,4 +286,10 @@ def test(get_config_parser, request):
286286

287287
result = testdir.runpytest_subprocess("-n1")
288288
assert result.ret == 1
289-
result.stdout.fnmatch_lines(["*usage: *", "*error: my_usage_error"])
289+
result.stdout.re_match_lines(
290+
[
291+
"^> raise UsageError",
292+
"^E .*UsageError: usage: (pytest.py|__main__.py)",
293+
"^E (pytest.py|__main__.py): error: my_usage_error",
294+
]
295+
)

0 commit comments

Comments
 (0)