nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 22 lines 839 B view raw
1diff --git a/tests/cli/test_run.py b/tests/cli/test_run.py 2index 1452cfd..0a21c09 100644 3--- a/tests/cli/test_run.py 4+++ b/tests/cli/test_run.py 5@@ -240,7 +240,7 @@ def test_main_multiple_autohide_options( 6 7 captured = capsys.readouterr() 8 lines = captured.err.strip("\n") 9- lines = lines.split("pytest: ", 1)[1] 10+ lines = lines.split("__main__.py: ", 1)[1] 11 expected = f"error: argument {options[1]}: not allowed with argument {options[0]}" 12 assert lines == expected 13 14@@ -277,7 +277,7 @@ def test_main_multiple_notify_options( 15 16 captured = capsys.readouterr() 17 lines = captured.err.strip("\n") 18- lines = lines.split("pytest: ", 1)[1] 19+ lines = lines.split("__main__.py: ", 1)[1] 20 expected = f"error: argument {options[1]}: not allowed with argument {options[0]}" 21 assert lines == expected 22