diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-19 23:39:24 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-21 13:37:29 -0400 |
| commit | b8148c4785787fd387a662aa1a40837f410b3f14 (patch) | |
| tree | 1430adba89380921818329161c975a92174f5a71 /tests | |
| parent | Remove tomli install test (diff) | |
| download | taskipy2-b8148c4785787fd387a662aa1a40837f410b3f14.zip | |
Fix subprocess signal handling logic on linux with ash/dash
Certain shells will have optimizations which will 'exec' commands
directly and not spawn a subprocess, which breaks our signal test on
those systems.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_taskipy.py | 2 | ||||
| -rw-r--r-- | tests/test_windows.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_taskipy.py b/tests/test_taskipy.py index f269ed3..e4c3827 100644 --- a/tests/test_taskipy.py +++ b/tests/test_taskipy.py @@ -412,7 +412,7 @@ class InterruptingTaskTestCase(TaskipyTestCase): process.send_signal(signal.SIGTERM) - exit_code = process.wait() + exit_code = process.wait(timeout=5000) stdout, _ = process.communicate() self.assertEqual(exit_code, 123) diff --git a/tests/test_windows.py b/tests/test_windows.py index 0fde16d..c1d7bca 100644 --- a/tests/test_windows.py +++ b/tests/test_windows.py @@ -14,7 +14,7 @@ class WindowsTestCase(unittest.TestCase): def test_mslex_install(self): '''Ensure that mslex is installed on Windows''' try: - import mslex # type: ignore # pylint: disable=W0611,C0415 + import mslex # type: ignore # pylint: disable=W0611,C0415 # noqa: F401 except ImportError: self.fail('Unable to import mslex') |