Lines Matching defs:support

28 import test.support
29 import test.support.script_helper
30 from test import support
31 from test.support import hashlib_helper
32 from test.support import import_helper
33 from test.support import os_helper
34 from test.support import socket_helper
35 from test.support import threading_helper
36 from test.support import warnings_helper
42 support.skip_if_broken_multiprocessing_synchronize()
78 if support.check_sanitizer(address=True):
96 # (join() and is_alive(), the support function can be reused
125 SHUTDOWN_TIMEOUT = support.SHORT_TIMEOUT
169 raise unittest.SkipTest("The OS doesn't support enough semaphores "
354 if not rconn.poll(timeout=support.LONG_TIMEOUT):
362 if not rconn.poll(timeout=support.LONG_TIMEOUT):
377 parent_process().join(timeout=support.SHORT_TIMEOUT)
1209 with test.support.captured_stderr():
1213 self.assertTrue(q.get(timeout=support.SHORT_TIMEOUT))
1216 with test.support.captured_stderr():
1228 self.assertTrue(q.get(timeout=support.SHORT_TIMEOUT))
1259 with test.support.captured_stderr():
1265 self.assertTrue(q.get(timeout=support.SHORT_TIMEOUT))
1615 self.assertTrue(sem.acquire(timeout=support.LONG_TIMEOUT))
2675 with test.support.captured_stderr() as f1:
2771 support.gc_collect()
2884 rc, out, err = test.support.script_helper.assert_python_ok('-c', cmd)
3389 "test needs abstract socket support")
3540 resource_sharer.stop(timeout=support.LONG_TIMEOUT)
4108 rc, out, err = test.support.script_helper.assert_python_ok('-c', cmd)
4321 deadline = time.monotonic() + support.LONG_TIMEOUT
5038 rc, out, err = test.support.script_helper.assert_python_failure(name, sm)
5042 rc, out, err = test.support.script_helper.assert_python_ok(name, sm)
5150 CONN_MAX_SIZE = max(support.PIPE_MAX_SIZE, support.SOCK_MAX_SIZE)
5277 rc, out, err = test.support.script_helper.assert_python_ok(name)
5342 deadline = time.monotonic() + support.LONG_TIMEOUT
5371 support.wait_process(pid, exitcode=-signal.SIGKILL)
5493 @test.support.cpython_only
5582 support.reap_children()
5598 test.support.environment_altered = True
5599 support.print_warning(f"multiprocessing.Manager still has "
5800 rc, out, err = test.support.script_helper.assert_python_ok(testfn)
5809 support.check__all__(self, multiprocessing, extra=multiprocessing.__all__,
5827 test.support.gc_collect()
5831 test.support.environment_altered = True
5832 support.print_warning(f'Dangling processes: {processes}')
5837 test.support.environment_altered = True
5838 support.print_warning(f'Dangling threads: {threads}')
5906 test.support.environment_altered = True
5907 support.print_warning(f"multiprocessing.Manager still has "
5917 test.support.environment_altered = True
5918 support.print_warning('Shared objects which still exist '
5920 support.print_warning(cls.manager._debug_info())
6011 test.support.gc_collect()
6018 test.support.environment_altered = True
6019 support.print_warning(f'Dangling processes: {processes}')
6025 test.support.environment_altered = True
6026 support.print_warning(f'Dangling threads: {threads}')