Skip to content

Commit 89a0638

Browse files
committed
!squash test_mixins more
1 parent c1fc1ed commit 89a0638

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/_internal/subprocess/test_mixins.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,10 @@ def test_run(
3636
capsys: pytest.LogCaptureFixture,
3737
):
3838
process_mock = mock.Mock()
39-
attrs = {"communicate.return_value": ("output", "error"), "returncode": 0}
39+
attrs = {"communicate.return_value": ("output", "error"), "returncode": 1}
4040
process_mock.configure_mock(**attrs)
4141
mock_subprocess_popen.return_value = process_mock
42-
43-
print(f"args: {args}, args[1:]: {args[1:]}")
44-
cmd = args[0] if isinstance(args, list) else [args]
45-
print(f"cmd: {cmd}")
4642
cmd = SubprocessCommand(*args, cwd=tmp_path, **kwargs)
4743
response = cmd.Popen(**run_kwargs)
4844

49-
assert response.returncode == 0
45+
assert response.returncode == 1

0 commit comments

Comments
 (0)