Skip to content

Commit d6fa180

Browse files
[TESTING] Posible fix for linux ctlC tests (- WIP #53 -)
Changes in file tests/test_hear_keyboard_interrupt.py: - possible fix for test_hear_keyboard_interrupt on linux
1 parent 67215fe commit d6fa180

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_hear_keyboard_interrupt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
if context.__name__ is None:
3030
raise ImportError("[CWE-758] Failed to import context") from None
3131
else:
32+
from context import sys
3233
from context import unittest
3334
from context import subprocess
3435
import signal
@@ -51,7 +52,7 @@ def test_hear_keyboard_interrupt(self):
5152
self.assertIsNotNone(_fixture_port_num)
5253
self.assertEqual(type(_fixture_port_num), type(int(0)))
5354
_fixture_HEAR_args = [
54-
"""coverage""", """multicast""",
55+
str("{} -m coverage run").format(sys.executable), """multicast""",
5556
"""--daemon""", """HEAR""",
5657
"""--port""", str(_fixture_port_num),
5758
"""--group""", """224.0.0.1"""

0 commit comments

Comments
 (0)