nixpkgs-suyu/pkgs/applications/networking/instant-messengers/zulip-term/pytest-executable-name.patch
2020-09-12 01:48:16 +02:00

13 lines
574 B
Diff

diff --git a/tests/cli/test_run.py b/tests/cli/test_run.py
index 459aa82..c6e434e 100644
--- a/tests/cli/test_run.py
+++ b/tests/cli/test_run.py
@@ -180,7 +180,7 @@ def test_main_multiple_autohide_options(capsys, options):
assert str(e.value) == "2"
captured = capsys.readouterr()
lines = captured.err.strip('\n')
- lines = lines.split("pytest: ", 1)[1]
+ lines = lines.split("__main__.py: ", 1)[1]
expected = ("error: argument {}: not allowed "
"with argument {}".format(options[1], options[0]))
assert lines == expected