Skip to content

Commit a47d0e3

Browse files
committed
Generalize text search in test_cli_noargs_shows_help()
1 parent 8314969 commit a47d0e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_cli_noargs_shows_help(self, run_cmdline_test):
7676
with stdio_mgr() as (in_, out_, err_):
7777
run_cmdline_test([])
7878

79-
assert "usage: sphobjinv" in out_.getvalue()
79+
assert re.search("usage:.*sphobjinv", out_.getvalue(), re.I)
8080

8181
@pytest.mark.timeout(CLI_TEST_TIMEOUT)
8282
def test_cli_no_subparser_prs_exit(self, run_cmdline_test):

0 commit comments

Comments
 (0)