Skip to content

Commit 13c56ed

Browse files
Mock out signal.signal for tests.
Closes #1216
1 parent 409361c commit 13c56ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/tests/test_cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ def capture_output(func, *args, **kwargs):
6060
sys.stderr = buffer_class()
6161

6262
try:
63-
func(*args, **kwargs)
63+
# Recent versions of MacOS seem to have issues with us calling signal
64+
# during tests.
65+
with mock.patch("signal.signal"):
66+
func(*args, **kwargs)
6467
stdout_output = sys.stdout.getvalue()
6568
stderr_output = sys.stderr.getvalue()
6669
finally:

0 commit comments

Comments
 (0)