Lines Matching defs:test

11 import test.support
12 from test import support
13 from test.support import os_helper
14 from test.support.script_helper import assert_python_ok, assert_python_failure
15 from test.support import threading_helper
16 from test.support import import_helper
22 # count the number of test runs, used to create unique
169 with test.support.captured_output("stderr") as stderr:
181 test.support.reap_children()
218 # test that the exit machinery handles SystemExits properly
231 # test that stderr buffer is flushed before the exit message is written
237 # test that the exit message is written with backslashreplace error
243 # test that the unicode message is encoded to the stderr encoding
297 # Issue #5392: test stack overflow after hitting recursion
306 @test.support.cpython_only
336 test.support.get_attribute(sys, "getwindowsversion")
368 'test needs sys.setdlopenflags()')
378 @test.support.refcount_test
380 # n here must be a global in order for this test to pass while
569 # probable primality test (doesn't exclude the possibility of
656 # the test runs under regrtest.
714 test.support.get_attribute(sys, "getwindowsversion")
717 @test.support.cpython_only
792 # argument. For test runs in the build directory, see #7774.
893 # This test applies to all implementations equally.
914 @test.support.cpython_only
917 from test.support.script_helper import assert_python_ok
965 # it is unlikely to happen in a normal test run.
1115 @test.support.cpython_only
1137 with test.support.captured_output("stderr") as stderr:
1138 with test.support.swap_attr(sys, 'unraisablehook',
1171 with test.support.captured_stderr() as stderr, \
1172 test.support.swap_attr(sys, 'unraisablehook',
1203 with test.support.captured_stderr() as stderr, test.support.swap_attr(
1218 with test.support.swap_attr(sys, 'unraisablehook',
1232 with test.support.swap_attr(sys, 'unraisablehook', hook_func):
1248 with test.support.captured_output("stderr") as stderr:
1249 with test.support.swap_attr(sys, 'unraisablehook', hook_func):
1261 @test.support.cpython_only
1270 check_sizeof = test.support.check_sizeof
1274 vsize = test.support.calcvobjsize
1313 size = test.support.calcvobjsize
1320 size = test.support.calcobjsize
1321 vsize = test.support.calcvobjsize
1503 # but this suffices for the sizeof test
1621 size = test.support.calcobjsize
1622 vsize = test.support.calcvobjsize