Lines Matching defs:test
5 import test.support
6 from test.support import threading_helper, requires_subprocess
7 from test.support import verbose, cpython_only, os_helper
8 from test.support.import_helper import import_module
9 from test.support.script_helper import assert_python_ok, assert_python_failure
25 from test import lock_tests
26 from test import support
95 test.support.reap_children()
158 test.support.check_disallow_instantiation(self, type(lock))
259 # exposed at the Python level. This test relies on ctypes to get at it.
544 from test.support import wait_process
599 test.support.setswitchinterval(1e-6)
626 @unittest.skipUnless(hasattr(os, 'waitpid'), "test needs os.waitpid()")
630 from test import support
648 @unittest.skipUnless(hasattr(os, 'waitpid'), "test needs os.waitpid()")
652 from test import support
710 # test the finalization of the main interpreter.
854 for test in range(3):
1027 # Like the test above, but from a forked interpreter
1029 from test import support
1048 # Like the test above, but fork() was called from a worker thread
1052 from test import support
1090 import test.test_threading as mod
1197 ret = test.support.run_in_subinterp(code)
1234 ret = test.support.run_in_subinterp(code)
1249 time.sleep({test.support.SHORT_TIMEOUT})
1257 with test.support.SuppressCrashReport():
1293 # test that excessive recursion within a non-main thread causes