summaryrefslogtreecommitdiff
path: root/waitress/tests
diff options
context:
space:
mode:
Diffstat (limited to 'waitress/tests')
-rw-r--r--waitress/tests/fixtureapps/procexit.py4
-rw-r--r--waitress/tests/test_functional.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/waitress/tests/fixtureapps/procexit.py b/waitress/tests/fixtureapps/procexit.py
index daf04d3..081d479 100644
--- a/waitress/tests/fixtureapps/procexit.py
+++ b/waitress/tests/fixtureapps/procexit.py
@@ -1,2 +1,4 @@
+import thread
+
def app(environ, start_response): # pragma: no cover
- raise KeyboardInterrupt
+ thread.interrupt_main()
diff --git a/waitress/tests/test_functional.py b/waitress/tests/test_functional.py
index bd1a2c2..260595a 100644
--- a/waitress/tests/test_functional.py
+++ b/waitress/tests/test_functional.py
@@ -1358,7 +1358,7 @@ class ProcExitTests(TcpTests, unittest.TestCase):
def tearDown(self):
self.stop_subprocess()
- def test_keyboard_interrupt_exits_main_process(self):
+ def test_thread_interrupt_main_exits_main_process(self):
to_send = "GET / HTTP/1.0\n\n"
to_send = tobytes(to_send)
self.connect()