Lines Matching defs:test

14 import test.support
25 from test.support import import_helper
26 from test.support import os_helper
27 from test.support.script_helper import assert_python_ok, assert_python_failure
28 from test.support import threading_helper
29 from test.support import (reap_children, captured_output, captured_stdout,
32 from test.support.os_helper import (TESTFN, rmtree, unlink)
33 from test import pydoc_mod
40 if test.support.HAVE_DOCSTRINGS:
50 test.pydoc_mod - This is a test module for test_pydoc
123 c_alias = test.pydoc_mod.C[int]
146 test.pydoc_mod (version 1.2.3.4)
147 This is a test module for test_pydoc
208 c_alias = test.pydoc_mod.C[int]
353 # Bit of hack, but good enough for test purposes
474 missing_module = "test.i_am_not_here"
482 result = run_pydoc('test.test_pydoc.nonascii', PYTHONIOENCODING='ascii')
487 missing_module = " test.i_am_not_here "
493 # test with strings, other implementations might have different repr()
647 module = "test.pydoc_mod"
649 Help on module test.pydoc_mod in test:
740 # This test is a bit fragile in the face of changes to object and type,
742 # logic of the function under test.
886 ('test.i_am_not_here_either', 'test.i_am_not_here_either'),
887 ('test.i_am_not_here.neither_am_i', 'test.i_am_not_here'),
889 ('test.{}'.format(modname), 'test.{}'.format(modname)),
1031 from test import pydocfodder
1096 # test low-level function
1098 # test high-level function
1370 # Minimal test that starts the server, checks that it works, then stops
1390 b'the URL sent was: (/test, text/html)',
1391 urlopen(urllib.parse.urljoin(serverthread.url, '/test')).read(),
1394 b'the URL sent was: (/test.css, text/css)',
1395 urlopen(urllib.parse.urljoin(serverthread.url, '/test.css')).read(),