aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/networking/instant-messengers/zulip-term/pytest-executable-name.patch
blob: 4602a254ab88a8d8ce637acd51a7b00051dc1300 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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