Skip to content

Commit

Permalink
mock signal registration to prevent errors when running tests under pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
mjurbanski-reef committed Mar 27, 2024
1 parent e2317ff commit 8cdcd9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8cdcd9e

Please sign in to comment.