Skip to content

Commit 1c3c696

Browse files
committed
test_cli: remove single-quoted cli arguments
see python/cpython#130751 this is a bug in cpython. The argument parsing behavior was changed in between two minor releases of Python 12. In order to continue working across Python versions, we relax the error message check.
1 parent 4dcfb05 commit 1c3c696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_invalid_command(parser, capsys):
8383
with pytest.raises(SystemExit):
8484
parser.parse_args(['invalid'])
8585
captured = capsys.readouterr()
86-
assert "invalid choice: 'invalid' (choose from 'map', 'merge', 'cov')" in captured.err
86+
assert "invalid choice: 'invalid'" in captured.err
8787

8888
def test_version_flag(parser, capsys):
8989
with pytest.raises(SystemExit) as excinfo:

0 commit comments

Comments
 (0)