Skip to content

Commit

Permalink
tests: re-harden test_remote_usage_prog
Browse files Browse the repository at this point in the history
The meaning of the test is to check that "prog" is not "-c", which was
weakened in 93780dc.
  • Loading branch information
blueyed committed Feb 22, 2020
1 parent 6fd5b56 commit 568ce9c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion testing/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,10 @@ def test(get_config_parser, request):

result = testdir.runpytest_subprocess("-n1")
assert result.ret == 1
result.stdout.fnmatch_lines(["*usage: *", "*error: my_usage_error"])
result.stdout.re_match_lines(
[
"^> raise UsageError",
"^E .*UsageError: usage: (pytest.py|__main__.py)",
"^E (pytest.py|__main__.py): error: my_usage_error",
]
)

0 comments on commit 568ce9c

Please sign in to comment.