diff options
author | Heng Liu <liucougar@gmail.com> | 2011-11-03 17:24:57 -0700 |
---|---|---|
committer | Heng Liu <liucougar@gmail.com> | 2011-11-03 17:24:57 -0700 |
commit | 8318349981691a7d01eba9431d0926377cb89ed6 (patch) | |
tree | 957d68cc0c5df0d9ea088c6be360e916c49f3639 /functional_tests | |
parent | fddd8ad03324f1b8cb48d3a5052b803235e5a627 (diff) | |
download | nose-8318349981691a7d01eba9431d0926377cb89ed6.tar.gz |
make the multiprocessing server process ignore ctrl+c to keep communication
channels open between subprocesses and main process
modified test
Diffstat (limited to 'functional_tests')
-rw-r--r-- | functional_tests/test_multiprocessing/test_keyboardinterrupt.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functional_tests/test_multiprocessing/test_keyboardinterrupt.py b/functional_tests/test_multiprocessing/test_keyboardinterrupt.py index e29ffef..7d26d10 100644 --- a/functional_tests/test_multiprocessing/test_keyboardinterrupt.py +++ b/functional_tests/test_multiprocessing/test_keyboardinterrupt.py @@ -53,6 +53,9 @@ def test_keyboardinterrupt(): assert 'teardown' in log assert 'Ran 0 tests' in stderr assert 'KeyboardInterrupt' in stderr + assert 'FAILED (errors=1)' in stderr + assert 'ERROR: Worker 0 keyboard interrupt, failing current test '+os.path.join(support,'keyboardinterrupt.py') in stderr + def test_keyboardinterrupt_twice(): process = keyboardinterrupt('keyboardinterrupt_twice.py') @@ -68,3 +71,4 @@ def test_keyboardinterrupt_twice(): assert 'teardown_finished' not in log assert 'Ran 0 tests' in stderr assert 'KeyboardInterrupt' in stderr + assert 'FAILED (errors=1)' in stderr |