diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -273,6 +273,7 @@ def _test_terminate(cls): time.sleep(100) + @test.support.no_tracing def test_terminate(self): if self.TYPE == 'threads': self.skipTest('test not appropriate for {}'.format(self.TYPE)) diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -3110,6 +3110,7 @@ def alarm_interrupt(self, sig, frame): 1/0 + @support.no_tracing @unittest.skipUnless(threading, 'Threading required for this test.') def check_interrupted_write(self, item, bytes, **fdopen_kwargs): """Check that a partial write, when it gets interrupted, properly diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -71,6 +71,7 @@ if e.errno != errno.EINTR: raise + @support.no_tracing def run_test(self): # Install handlers. This function runs in a sub-process, so we # don't worry about re-setting the default handlers. @@ -275,6 +276,7 @@ assert_python_ok('-c', code) + @support.no_tracing def test_wakeup_write_error(self): # Issue #16105: write() errors in the C signal handler should not # pass silently. @@ -650,6 +652,7 @@ """ assert_python_ok('-c', code) + @support.no_tracing @unittest.skipUnless(hasattr(signal, 'pthread_sigmask'), 'need signal.pthread_sigmask()') def wait_helper(self, blocked, test): diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -1259,6 +1259,7 @@ # have a reverse entry yet # socket.gethostbyaddr('испытание.python.org') + @support.no_tracing def check_sendall_interrupted(self, with_timeout): # socketpair() is not stricly required, but it makes things easier. if not hasattr(signal, 'alarm') or not hasattr(socket, 'socketpair'): @@ -4473,6 +4474,7 @@ if not ok: self.fail("accept() returned success when we did not expect it") + @support.no_tracing @unittest.skipUnless(hasattr(signal, 'alarm'), 'test needs signal.alarm()') def testInterruptedTimeout(self): diff --git a/Lib/test/test_threadsignals.py b/Lib/test/test_threadsignals.py --- a/Lib/test/test_threadsignals.py +++ b/Lib/test/test_threadsignals.py @@ -4,7 +4,7 @@ import signal import os import sys -from test.support import run_unittest, import_module +from test.support import run_unittest, import_module, no_tracing thread = import_module('_thread') import time @@ -72,6 +72,7 @@ def alarm_interrupt(self, sig, frame): raise KeyboardInterrupt + @no_tracing @unittest.skipIf(USING_PTHREAD_COND, 'POSIX condition variables cannot be interrupted') def test_lock_acquire_interruption(self): @@ -95,6 +96,7 @@ finally: signal.signal(signal.SIGALRM, oldalrm) + @no_tracing @unittest.skipIf(USING_PTHREAD_COND, 'POSIX condition variables cannot be interrupted') def test_rlock_acquire_interruption(self):