Skip to content

Commit fd7f39a

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 fd7f39a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

testing/test_remote.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -286,4 +286,8 @@ 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+
"^> raise UsageError",
291+
"^E .*UsageError: usage: (pytest.py|__main__.py)",
292+
"^E (pytest.py|__main__.py): error: my_usage_error",
293+
])

0 commit comments

Comments
 (0)