Searched refs:test_support (Results 1 – 25 of 588) sorted by relevance
12345678910>>...24
/external/python/cpython2/Lib/test/ |
D | test_genericpath.py | 6 from test import test_support 76 f = open(test_support.TESTFN, "wb") 80 self.assertEqual(self.pathmodule.getsize(test_support.TESTFN), 3) 84 test_support.unlink(test_support.TESTFN) 87 f = open(test_support.TESTFN, "wb") 91 f = open(test_support.TESTFN, "ab") 94 f = open(test_support.TESTFN, "rb") 100 self.pathmodule.getctime(test_support.TESTFN), 101 self.pathmodule.getmtime(test_support.TESTFN) 106 test_support.unlink(test_support.TESTFN) [all …]
|
D | test_marshal.py | 3 from test import test_support 23 marshal.dump(expected, file(test_support.TESTFN, "wb")) 24 got = marshal.load(file(test_support.TESTFN, "rb")) 27 os.unlink(test_support.TESTFN) 58 marshal.dump(b, file(test_support.TESTFN, "wb")) 59 new = marshal.load(file(test_support.TESTFN, "rb")) 74 marshal.dump(f, file(test_support.TESTFN, "wb")) 75 got = marshal.load(file(test_support.TESTFN, "rb")) 101 marshal.dump(f, file(test_support.TESTFN, "wb")) 102 got = marshal.load(file(test_support.TESTFN, "rb")) [all …]
|
D | test_macostools.py | 6 from test import test_support 8 MacOS = test_support.import_module('MacOS') 13 TESTFN2 = test_support.TESTFN + '2' 20 fp = open(test_support.TESTFN, 'w') 23 rfp = MacOS.openrf(test_support.TESTFN, '*wb') 28 test_support.unlink(test_support.TESTFN) 29 test_support.unlink(TESTFN2) 32 fp = open(test_support.TESTFN, 'r') 40 rfp = MacOS.openrf(test_support.TESTFN, '*rb') 52 with test_support.check_warnings(('macostools.touched*', [all …]
|
D | test_posixpath.py | 2 from test import test_support, test_genericpath 3 from test import test_support as support 18 ABSTFN = abspath(test_support.TESTFN) 43 test_support.unlink(test_support.TESTFN + suffix) 44 safe_rmdir(test_support.TESTFN + suffix) 102 self.assertIs(posixpath.islink(test_support.TESTFN + "1"), False) 103 f = open(test_support.TESTFN + "1", "wb") 107 self.assertIs(posixpath.islink(test_support.TESTFN + "1"), False) 109 os.symlink(test_support.TESTFN + "1", test_support.TESTFN + "2") 110 self.assertIs(posixpath.islink(test_support.TESTFN + "2"), True) [all …]
|
D | test_macos.py | 2 from test import test_support 6 MacOS = test_support.import_module('MacOS') 8 TESTFN2 = test_support.TESTFN + '2' 15 fp = open(test_support.TESTFN, 'w') 21 test_support.TESTFN]) 23 cr, tp = MacOS.GetCreatorAndType(test_support.TESTFN) 28 os.unlink(test_support.TESTFN) 34 fp = open(test_support.TESTFN, 'w') 38 MacOS.SetCreatorAndType(test_support.TESTFN, 41 cr, tp = MacOS.GetCreatorAndType(test_support.TESTFN) [all …]
|
D | test_posix.py | 3 from test import test_support 6 posix = test_support.import_module('posix') 22 test_support.TESTFN + '-dummy-symlink') 31 fp = open(test_support.TESTFN, 'w+') 33 self.teardown_files = [ test_support.TESTFN ] 139 fp = open(test_support.TESTFN) 148 fp = open(test_support.TESTFN, 'w+') 160 fp = open(test_support.TESTFN) 177 fp1 = open(test_support.TESTFN) 178 fp2 = open(test_support.TESTFN) [all …]
|
D | test_univnewlines2k.py | 5 from test import test_support 40 with open(test_support.TESTFN, self.WRITEMODE) as fp: 45 os.unlink(test_support.TESTFN) 50 with open(test_support.TESTFN, self.READMODE) as fp: 56 with open(test_support.TESTFN, self.READMODE) as fp: 62 with open(test_support.TESTFN, self.READMODE) as fp: 72 with open(test_support.TESTFN, self.READMODE) as fp: 83 with test_support.check_py3k_warnings(): 84 execfile(test_support.TESTFN, namespace) 109 with open(test_support.TESTFN, self.READMODE) as fp: [all …]
|
D | test_dummy_threading.py | 1 from test import test_support 18 if test_support.verbose: 23 if test_support.verbose: 27 if test_support.verbose: 31 if test_support.verbose: 52 if test_support.verbose: 56 if test_support.verbose: 60 test_support.run_unittest(DummyThreadingTestCase)
|
D | test_smtpnet.py | 2 from test import test_support 5 test_support.requires("network") 12 test_support.get_attribute(smtplib, 'SMTP_SSL') 13 with test_support.transient_internet(self.testServer): 19 test_support.get_attribute(smtplib, 'SMTP_SSL') 20 with test_support.transient_internet(self.testServer): 26 test_support.run_unittest(SmtpSSLTest)
|
D | test_urllib2net.py | 2 from test import test_support 112 TESTFN = test_support.TESTFN 157 with test_support.transient_internet(urlwith_frag): 176 with test_support.transient_internet(url): 193 with test_support.transient_internet(URL): 212 with test_support.transient_internet(url): 230 with test_support.transient_internet(url): 254 with test_support.transient_internet(url, timeout=None): 261 with test_support.transient_internet(url): 272 with test_support.transient_internet(url): [all …]
|
D | test_applesingle.py | 5 from test import test_support 8 MacOS = test_support.import_module('MacOS') 22 TESTFN2 = test_support.TESTFN + '2' 27 fp = open(test_support.TESTFN, 'w') 33 os.unlink(test_support.TESTFN) 54 applesingle.decode(test_support.TESTFN, TESTFN2) 63 applesingle.decode(test_support.TESTFN, TESTFN2, resonly=True) 67 test_support.run_unittest(TestApplesingle)
|
D | test_os.py | 20 from test import test_support 31 if os.path.exists(test_support.TESTFN): 32 os.unlink(test_support.TESTFN) 36 f = os.open(test_support.TESTFN, os.O_CREAT|os.O_RDWR) 38 self.assertTrue(os.access(test_support.TESTFN, os.W_OK)) 41 first = os.open(test_support.TESTFN, os.O_CREAT|os.O_RDWR) 61 @test_support.cpython_only 63 path = unicode(test_support.TESTFN) 73 os.mkdir(test_support.TESTFN) 78 os.rmdir(test_support.TESTFN) [all …]
|
D | test_tk.py | 2 from test import test_support 5 test_support.import_module('_tkinter') 6 test_support.requires('gui') 12 with test_support.DirsOnSysPath(lib_tk_test): 16 with test_support.DirsOnSysPath(lib_tk_test): 17 test_support.run_unittest(
|
D | test_tools.py | 17 from test import test_support 411 os.mkdir(test_support.TESTFN) 412 self.addCleanup(test_support.rmtree, test_support.TESTFN) 413 c_filename = os.path.join(test_support.TESTFN, "file.c") 416 with open(os.path.join(test_support.TESTFN, "file.py"), "w") as file: 420 with test_support.captured_stderr() as stderr: 421 output = self.run_script(args=(test_support.TESTFN,)) 431 substfilename = test_support.TESTFN + ".subst" 434 self.addCleanup(test_support.unlink, substfilename) 438 with test_support.swap_attr(sys, "argv", argv), \ [all …]
|
D | test_ttk_guionly.py | 3 from test import test_support 6 test_support.import_module('_tkinter') 7 test_support.requires('gui') 13 with test_support.DirsOnSysPath(lib_tk_test): 35 with test_support.DirsOnSysPath(lib_tk_test): 36 test_support.run_unittest(
|
D | test_ntpath.py | 5 from test.test_support import TestFailed 6 from test import test_support, test_genericpath 72 if test_support.have_unicode: 186 with test_support.EnvironmentVarGuard() as env: 211 @unittest.skipUnless(test_support.FS_NONASCII, 'need test_support.FS_NONASCII') 218 with test_support.EnvironmentVarGuard() as env: 220 unonascii = test_support.FS_NONASCII 238 with test_support.EnvironmentVarGuard() as env: 290 with test_support.temp_cwd(test_support.TESTFN) as cwd_dir: 315 test_support.run_unittest(TestNtpath, NtCommonTest)
|
D | test_pep277.py | 5 from test import test_support 73 os.mkdir(test_support.TESTFN) 78 name = os.path.join(test_support.TESTFN, self.norm(name)) 86 deltree(test_support.TESTFN) 151 f1 = os.listdir(test_support.TESTFN) 152 f2 = os.listdir(unicode(test_support.TESTFN, 154 sf2 = set(os.path.join(unicode(test_support.TESTFN), f) for f in f2) 164 dirname = os.path.join(test_support.TESTFN, 167 with test_support.temp_cwd(dirname): 192 test_support.run_unittest( [all …]
|
D | test_structmembers.py | 2 from test import test_support 5 test_support.import_module('_testcapi') 82 with test_support.check_warnings(('', RuntimeWarning)): 86 with test_support.check_warnings(('', RuntimeWarning)): 90 with test_support.check_warnings(('', RuntimeWarning)): 94 with test_support.check_warnings(('', RuntimeWarning)): 98 with test_support.check_warnings(('', RuntimeWarning)): 102 with test_support.check_warnings(('', RuntimeWarning)): 107 test_support.run_unittest(__name__)
|
D | test__osx_support.py | 12 import test.test_support 23 self.env = test.test_support.EnvironmentVarGuard() 43 test.test_support.unlink(self.prog_name) 45 self.addCleanup(test.test_support.unlink, self.prog_name) 56 test.test_support.unlink(self.prog_name) 57 self.addCleanup(test.test_support.unlink, self.prog_name) 147 test.test_support.unlink(c_name) 148 self.addCleanup(test.test_support.unlink, c_name) 202 test.test_support.unlink(c_name) 203 self.addCleanup(test.test_support.unlink, c_name) [all …]
|
D | test_ttk_textonly.py | 2 from test import test_support 5 test_support.import_module('_tkinter') 10 with test_support.DirsOnSysPath(lib_tk_test): 14 with test_support.DirsOnSysPath(lib_tk_test): 15 test_support.run_unittest(
|
D | test_select.py | 1 from test import test_support 35 if test_support.verbose: 42 if test_support.verbose: 45 if test_support.verbose: 63 test_support.run_unittest(SelectTestCase) 64 test_support.reap_children()
|
D | test_old_mailbox.py | 8 from test import test_support 12 os.unlink(test_support.TESTFN) 29 self._dir = test_support.TESTFN 67 self.mbox = mailbox.Maildir(test_support.TESTFN) 74 self.mbox = mailbox.Maildir(test_support.TESTFN) 84 self.mbox = mailbox.Maildir(test_support.TESTFN) 95 self.mbox = mailbox.Maildir(test_support.TESTFN) 122 self._path = test_support.TESTFN 156 test_support.run_unittest(MaildirTestCase, MboxTestCase)
|
D | test_future.py | 4 from test import test_support 16 test_support.unload('test_future1') 21 test_support.unload('test_future2') 26 test_support.unload('test_future3') 106 test_support.unload("test.test_future5") 116 test_support.run_unittest(FutureTest)
|
/external/libchrome/mojo/core/test/ |
D | BUILD.gn | 5 static_library("test_support") { 27 "//base/test:test_support", 41 ":test_support", 44 "//base/test:test_support", 46 "//mojo/public/c/test_support", 60 "//base/test:test_support", 62 "//mojo/core/test:test_support", 63 "//mojo/public/c/test_support", 79 "//base/test:test_support", 80 "//mojo/public/c/test_support",
|
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/ |
D | module_tests.py | 7 import test_support 9 EXPECT_EQ = test_support.EXPECT_EQ 10 EXPECT_TRUE = test_support.EXPECT_TRUE 11 RunTest = test_support.RunTest 12 ModulesAreEqual = test_support.ModulesAreEqual 13 BuildTestModule = test_support.BuildTestModule 14 TestTestModule = test_support.TestTestModule
|
12345678910>>...24