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 fd7f39a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion testing/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,8 @@ 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 fd7f39a

Please sign in to comment.