aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_socketserver.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_socketserver.py')
-rw-r--r--Lib/test/test_socketserver.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py
index 954e0331352..211321f3761 100644
--- a/Lib/test/test_socketserver.py
+++ b/Lib/test/test_socketserver.py
@@ -323,8 +323,11 @@ class ErrorHandlerTest(unittest.TestCase):
self.check_result(handled=True)
def test_threading_not_handled(self):
- ThreadingErrorTestServer(SystemExit)
- self.check_result(handled=False)
+ with threading_helper.catch_threading_exception() as cm:
+ ThreadingErrorTestServer(SystemExit)
+ self.check_result(handled=False)
+
+ self.assertIs(cm.exc_type, SystemExit)
@requires_forking
def test_forking_handled(self):