From b35487e6058cde9c10b9e2a551554922925a5a61 Mon Sep 17 00:00:00 2001 From: Christoph Hamsen Date: Fri, 4 Feb 2022 14:41:45 +0100 Subject: [PATCH] test: fix pytest-subprocess renaming failures --- tests/validators/cosign/test_cosign_validator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/validators/cosign/test_cosign_validator.py b/tests/validators/cosign/test_cosign_validator.py index 2a2fc8977..4d6cbe0ae 100644 --- a/tests/validators/cosign/test_cosign_validator.py +++ b/tests/validators/cosign/test_cosign_validator.py @@ -84,7 +84,7 @@ def mock_add_kill_fake_process(monkeypatch): def mock_kill(self): return - pytest_subprocess.core.FakePopen.kill = mock_kill + pytest_subprocess.fake_popen.FakePopen.kill = mock_kill @pytest.mark.parametrize("index", [0, 1, 2]) @@ -313,7 +313,7 @@ def callback_function(input): stdin_callable=callback_function, ) - mock_kill = mocker.patch("pytest_subprocess.core.FakePopen.kill") + mock_kill = mocker.patch("pytest_subprocess.fake_popen.FakePopen.kill") with pytest.raises(exc.CosignTimeout) as err: