/external/python/cpython3/Lib/test/ |
H A D | test_abc.py | 7 from test import support namespace
|
H A D | test_asynchat.py | 3 from test import support namespace 6 thread = support.import_module('_thread') 21 HOST = support.HOST 35 self.port = support.bind_port(self.sock) 113 self._threads = support.threading_setup() 116 support.threading_cleanup(*self._threads)
|
H A D | test_base64.py | 2 from test import support namespace 7 from test.support import script_helper 648 if os.path.exists(support.TESTFN): 649 os.unlink(support.TESTFN) 663 with open(support.TESTFN, 'wb') as fp: 665 output = self.get_output('-e', support.TESTFN) 675 with open(support.TESTFN, 'wb') as fp: 677 output = self.get_output('-d', support.TESTFN)
|
H A D | test_bisect.py | 3 from test import support namespace 6 py_bisect = support.import_fresh_module('bisect', blocked=['_bisect']) 7 c_bisect = support.import_fresh_module('bisect', fresh=['_bisect'])
|
H A D | test_bool.py | 4 from test import support namespace 23 fo = open(support.TESTFN, "w") 26 fo = open(support.TESTFN, "r") 30 os.remove(support.TESTFN) 244 f = open(support.TESTFN, "w") 249 os.remove(support.TESTFN) 365 support.run_unittest(BoolTest)
|
H A D | test_cgi.py | 1 from test.support import check_warnings 10 from test import support namespace 480 support.check__all__(self, cgi, blacklist=blacklist)
|
H A D | test_cmd_line.py | 5 import test.support, unittest namespace 11 from test.support import script_helper, is_android 12 from test.support.script_helper import (spawn_python, kill_python, assert_python_ok, 62 # use subprocess module directly because test.support.script_helper adds 136 @unittest.skipUnless(test.support.FS_NONASCII, 'need support.FS_NONASCII') 140 % (test.support.FS_NONASCII, ord(test.support.FS_NONASCII))) 348 import os, sys, test.support 349 test.support [all...] |
H A D | test_complex.py | 2 from test import support namespace 287 # are harmless on systems without support for signed zeros.) 390 @support.requires_IEEE_754 463 @support.requires_IEEE_754 488 fo = open(support.TESTFN, "w") 491 fo = open(support.TESTFN, "r") 496 support.unlink(support.TESTFN) 506 @support.requires_IEEE_754 513 @support [all...] |
H A D | test_dummy_thread.py | 6 from test import support namespace 75 if support.verbose: 81 if support.verbose: 196 if support.verbose: 210 if support.verbose:
|
H A D | test_ensurepip.py | 3 import test.support namespace 176 with test.support.captured_stderr() as stderr: 250 with test.support.captured_stdout() as stdout: 274 with test.support.captured_stdout() as stdout:
|
H A D | test_enumerate.py | 6 from test import support namespace 130 @support.cpython_only
|
H A D | test_generators.py | 11 from test import support namespace 29 support.gc_collect() 33 support.gc_collect() 53 support.gc_collect() 701 >>> from test.support import HAVE_DOCSTRINGS 2106 Prior to adding cycle-GC support to itertools.tee, this code would leak 2197 from test import support, test_generators namespace 2198 support.run_unittest(__name__) 2199 support.run_doctest(test_generators, verbose)
|
H A D | test_genericpath.py | 10 from test import support namespace 11 android_not_root = support.android_not_root 99 filename = support.TESTFN 100 self.addCleanup(support.unlink, filename) 110 filename = support.TESTFN 111 self.addCleanup(support.unlink, filename) 128 filename = support.TESTFN 129 self.addCleanup(support.unlink, filename) 152 filename = support.TESTFN 153 self.addCleanup(support [all...] |
H A D | test_gettext.py | 6 from test import support namespace 127 self.env = support.EnvironmentVarGuard() 134 support.rmtree(os.path.split(LOCALEDIR)[0]) 186 support for your Python programs by providing an interface to the GNU 280 support for your Python programs by providing an interface to the GNU 532 support.check__all__(self, gettext, blacklist=blacklist) 536 support.run_unittest(__name__) 545 # pygettext. Later it was manually modified to add plural forms support. 589 "support for your Python programs by providing an interface to the GNU\n" 596 # Manually added, as neither pygettext nor xgettext support plura [all...] |
H A D | test_imp.py | 10 from test import support namespace 21 meth = support.cpython_only(meth) 112 support.unlink(temp_mod_name + '.py') 113 support.unlink(temp_mod_name + '.pyc') 197 support.unlink(temp_mod_name + ext) 198 support.unlink(init_file_name + ext) 199 support.rmtree(test_package_name) 200 support.rmtree('__pycache__') 209 # XXX (ncoghlan): It would be nice to use support.CleanImport 218 with support [all...] |
H A D | test_index.py | 2 from test import support namespace 4 maxsize = support.MAX_Py_ssize_t
|
H A D | test_int.py | 4 from test import support namespace 236 @support.cpython_only
|
H A D | test_multibytecodec.py | 6 from test import support namespace 7 from test.support import TESTFN 60 support.unlink(TESTFN) 182 support.unlink(TESTFN) 267 support.run_unittest(__name__)
|
H A D | test_ntpath.py | 6 from test.support import TestFailed 7 from test import support, test_genericpath namespace 78 with support.check_warnings(('', DeprecationWarning)): 217 with support.EnvironmentVarGuard() as env: 242 @unittest.skipUnless(support.FS_NONASCII, 'need support.FS_NONASCII') 246 with support.EnvironmentVarGuard() as env: 248 nonascii = support.FS_NONASCII 265 with support.EnvironmentVarGuard() as env: 314 with support [all...] |
H A D | test_pdb.py | 12 from test import support namespace 945 self.addCleanup(support.unlink, filename) 946 self.addCleanup(support.rmtree, '__pycache__') 961 with open(support.TESTFN, 'w') as f: 965 expected[0], support.TESTFN, expected[1]) 967 expected, pdb.find_function(func_name, support.TESTFN)) 990 with open(support.TESTFN, 'wb') as f: 992 cmd = [sys.executable, '-m', 'pdb', support.TESTFN] 1033 self.addCleanup(support.unlink, 'bar.py') 1044 support [all...] |
H A D | test_platform.py | 10 from test import support namespace 16 @support.skip_unless_symlink 38 link = os.path.abspath(support.TESTFN) 189 with support.EnvironmentVarGuard() as environ:
|
H A D | test_plistlib.py | 10 from test import support namespace 98 os.unlink(support.TESTFN) 136 with open(support.TESTFN, 'wb') as fp: 139 with open(support.TESTFN, 'rb') as fp: 413 # Expat does not support UTF-32 466 self.addCleanup(support.unlink, support.TESTFN) 468 plistlib.writePlist(pl_in, support.TESTFN) 471 pl2 = plistlib.readPlist(support.TESTFN) 475 os.unlink(support [all...] |
/external/python/cpython3/Lib/test/test_asyncio/ |
H A D | test_subprocess.py | 12 from test import support namespace 14 from asyncio import test_support as support namespace 191 large_data = b'x' * support.PIPE_MAX_SIZE
|
/external/python/cpython3/Lib/test/test_importlib/ |
H A D | test_api.py | 9 from test import support namespace 74 self.init.import_module('.support') 205 with support.CleanImport(mod): 226 with support.CleanImport('types'): 237 with support.CleanImport('types'): 249 with support.temp_cwd(None) as cwd: 251 with support.DirsOnSysPath(cwd): 262 support.create_empty_file(path) 300 with support.temp_cwd(None) as cwd: 302 with support [all...] |
H A D | util.py | 9 from test import support namespace 50 frozen = support.import_fresh_module(module_name) 51 source = support.import_fresh_module(module_name, fresh=fresh, 143 with support.temp_cwd(None) as cwd: 145 with support.DirsOnSysPath(cwd): 370 support.rmtree(temp_dir)
|