diff options
author | Joshua Hesketh <josh@nitrotech.org> | 2020-06-03 19:30:19 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 10:30:19 +0100 |
commit | 63601760459251b18441c8f5a1887b465ad470c3 (patch) | |
tree | f3787578cc45021df7189cd8087e3bfeb681cd4f /tests | |
parent | a421aeb75cc019cfc53bb8903d5e442f34bcc632 (diff) | |
download | tox-git-63601760459251b18441c8f5a1887b465ad470c3.tar.gz |
Add option to delay propegating SIGINT to child process (#1588)
Co-Authored-By: Stefan H. Holek <stefan@epy.co.at>
Co-authored-by: Stefan H. Holek <stefan@epy.co.at>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/config/test_config.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/config/test_config.py b/tests/unit/config/test_config.py index 911be6e3..91f5c204 100644 --- a/tests/unit/config/test_config.py +++ b/tests/unit/config/test_config.py @@ -175,11 +175,12 @@ class TestVenvConfig: assert DepOption._is_same_dep("pkg_hello-world3==1.0", "pkg_hello-world3<=2.0") assert not DepOption._is_same_dep("pkg_hello-world3==1.0", "otherpkg>=2.0") - def test_interrupt_terminate_timeout_set_manually(self, newconfig): + def test_suicide_interrupt_terminate_timeout_set_manually(self, newconfig): config = newconfig( [], """ [testenv:dev] + suicide_timeout = 30.0 interrupt_timeout = 5.0 terminate_timeout = 10.0 @@ -187,10 +188,12 @@ class TestVenvConfig: """, ) envconfig = config.envconfigs["other"] + assert 0.0 == envconfig.suicide_timeout assert 0.3 == envconfig.interrupt_timeout assert 0.2 == envconfig.terminate_timeout envconfig = config.envconfigs["dev"] + assert 30.0 == envconfig.suicide_timeout assert 5.0 == envconfig.interrupt_timeout assert 10.0 == envconfig.terminate_timeout |