Skip to content

Commit 0a3efe3

Browse files
authored
Merge pull request #1217 from jeromekelleher/fix-ci-signal
Mock out signal.signal for tests.
2 parents 409361c + 13c56ed commit 0a3efe3

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)