diff --git a/test/unit/conftest.py b/test/unit/conftest.py index 8719e926..2aebc15c 100644 --- a/test/unit/conftest.py +++ b/test/unit/conftest.py @@ -96,6 +96,12 @@ def run(self, *args, **kwargs): return self._run_command(*args, **kwargs) +@pytest.fixture(scope="session", autouse=True) +def mock_signal(): + with mock.patch('signal.signal'): + yield + + @pytest.fixture def b2_cli(console_tool_class): cli_tester = ConsoleToolTester()