/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_macos.py | 8 TESTFN2 = test_support.TESTFN + '2' 17 fp = open(test_support.TESTFN, 'w') 23 test_support.TESTFN]) 25 cr, tp = MacOS.GetCreatorAndType(test_support.TESTFN) 30 os.unlink(test_support.TESTFN) 37 fp = open(test_support.TESTFN, 'w') 41 MacOS.SetCreatorAndType(test_support.TESTFN, 44 cr, tp = MacOS.GetCreatorAndType(test_support.TESTFN) 48 data = subprocess.Popen(["/Developer/Tools/GetFileInfo", test_support.TESTFN], 63 os.unlink(test_support.TESTFN) [all...] |
test_macostools.py | 13 TESTFN2 = test_support.TESTFN + '2' 18 fp = open(test_support.TESTFN, 'w') 21 rfp = MacOS.openrf(test_support.TESTFN, '*wb') 26 test_support.unlink(test_support.TESTFN) 30 fp = open(test_support.TESTFN, 'r') 38 rfp = MacOS.openrf(test_support.TESTFN, '*rb') 52 macostools.touched(test_support.TESTFN) 57 macostools.copy(test_support.TESTFN, TESTFN2) 63 macostools.mkalias(test_support.TESTFN, TESTFN2) 65 self.assertEqual(fss.as_pathname(), os.path.realpath(test_support.TESTFN)) [all...] |
test_genericpath.py | 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) 109 self.assertIs(self.pathmodule.exists(test_support.TESTFN), False [all...] |
test_cprofile.py | 4 from test.test_support import run_unittest, TESTFN, unlink 18 sys.stderr = open(TESTFN, 'w') 26 unlink(TESTFN)
|
test_wave.py | 1 from test.test_support import TESTFN, run_unittest 20 os.remove(TESTFN) 25 self.f = wave.open(TESTFN, 'wb') 34 self.f = wave.open(TESTFN, 'rb')
|
test_applesingle.py | 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)
|
test_marshal.py | 19 marshal.dump(expected, file(test_support.TESTFN, "wb")) 20 got = marshal.load(file(test_support.TESTFN, "rb")) 23 os.unlink(test_support.TESTFN) 54 marshal.dump(b, file(test_support.TESTFN, "wb")) 55 new = marshal.load(file(test_support.TESTFN, "rb")) 70 marshal.dump(f, file(test_support.TESTFN, "wb")) 71 got = marshal.load(file(test_support.TESTFN, "rb")) 97 marshal.dump(f, file(test_support.TESTFN, "wb")) 98 got = marshal.load(file(test_support.TESTFN, "rb")) 101 marshal.dump(f, file(test_support.TESTFN, "wb"), 1 [all...] |
test_posixpath.py | 7 # An absolute path to a temporary filename for testing. We can't rely on TESTFN 10 ABSTFN = abspath(test_support.TESTFN) 35 test_support.unlink(test_support.TESTFN + suffix) 36 safe_rmdir(test_support.TESTFN + suffix) 94 self.assertIs(posixpath.islink(test_support.TESTFN + "1"), False) 95 f = open(test_support.TESTFN + "1", "wb") 99 self.assertIs(posixpath.islink(test_support.TESTFN + "1"), False) 101 os.symlink(test_support.TESTFN + "1", test_support.TESTFN + "2") 102 self.assertIs(posixpath.islink(test_support.TESTFN + "2"), True [all...] |
test_file.py | 15 from test.test_support import TESTFN, run_unittest 22 self.f = self.open(TESTFN, 'wb') 27 os.remove(TESTFN) 50 self.f = self.open(TESTFN, 'rb') 58 self.f = self.open(TESTFN, 'r') 67 self.f = self.open(TESTFN, 'rb') 90 self.assertEqual(f.name, TESTFN) 150 f = self.open(TESTFN, mode) 171 f = self.open(TESTFN, bad_mode) 175 if TESTFN in s or bad_mode not in s [all...] |
test_fileio.py | 15 from test.test_support import TESTFN, check_warnings, run_unittest, make_bad_fd 25 self.f = _FileIO(TESTFN, 'w') 30 os.remove(TESTFN) 72 self.f = _FileIO(TESTFN, 'r') 80 self.f = _FileIO(TESTFN, 'rb') 88 self.f = _FileIO(TESTFN, 'rb') 99 self.f = _FileIO(TESTFN, 'r') 118 #self.assertEqual(f.name, TESTFN) 122 f = _FileIO(TESTFN, 'r') 244 self.f = _FileIO(TESTFN, 'r' [all...] |
test_univnewlines2k.py | 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: 84 execfile(test_support.TESTFN, namespace) 109 with open(test_support.TESTFN, self.READMODE) as fp:
|
test_bufio.py | 19 # Ensure we can open TESTFN for writing. 20 support.unlink(support.TESTFN) 24 f = self.open(support.TESTFN, "wb") 31 f = open(support.TESTFN, "rb") 40 support.unlink(support.TESTFN)
|
test_largefile.py | 10 from test.test_support import run_unittest, TESTFN, verbose, requires, \ 41 with self.open(TESTFN, 'wb') as f: 54 self.assertEqual(os.stat(TESTFN)[stat.ST_SIZE], size+1) 59 with self.open(TESTFN, 'rb') as f: 92 with self.open(TESTFN, 'rb') as f: 107 with self.open(TESTFN, 'r+b') as f: 146 with self.open(TESTFN, 'rb') as f: 163 f = open(TESTFN, 'wb', buffering=0) 173 unlink(TESTFN) 189 with _open(TESTFN, 'wb') as f [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_macos.py | 8 TESTFN2 = test_support.TESTFN + '2' 17 fp = open(test_support.TESTFN, 'w') 23 test_support.TESTFN]) 25 cr, tp = MacOS.GetCreatorAndType(test_support.TESTFN) 30 os.unlink(test_support.TESTFN) 37 fp = open(test_support.TESTFN, 'w') 41 MacOS.SetCreatorAndType(test_support.TESTFN, 44 cr, tp = MacOS.GetCreatorAndType(test_support.TESTFN) 48 data = subprocess.Popen(["/Developer/Tools/GetFileInfo", test_support.TESTFN], 63 os.unlink(test_support.TESTFN) [all...] |
test_macostools.py | 13 TESTFN2 = test_support.TESTFN + '2' 18 fp = open(test_support.TESTFN, 'w') 21 rfp = MacOS.openrf(test_support.TESTFN, '*wb') 26 test_support.unlink(test_support.TESTFN) 30 fp = open(test_support.TESTFN, 'r') 38 rfp = MacOS.openrf(test_support.TESTFN, '*rb') 52 macostools.touched(test_support.TESTFN) 57 macostools.copy(test_support.TESTFN, TESTFN2) 63 macostools.mkalias(test_support.TESTFN, TESTFN2) 65 self.assertEqual(fss.as_pathname(), os.path.realpath(test_support.TESTFN)) [all...] |
test_genericpath.py | 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) 109 self.assertIs(self.pathmodule.exists(test_support.TESTFN), False [all...] |
test_cprofile.py | 4 from test.test_support import run_unittest, TESTFN, unlink 18 sys.stderr = open(TESTFN, 'w') 26 unlink(TESTFN)
|
test_wave.py | 1 from test.test_support import TESTFN, run_unittest 20 os.remove(TESTFN) 25 self.f = wave.open(TESTFN, 'wb') 34 self.f = wave.open(TESTFN, 'rb')
|
test_applesingle.py | 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)
|
test_marshal.py | 19 marshal.dump(expected, file(test_support.TESTFN, "wb")) 20 got = marshal.load(file(test_support.TESTFN, "rb")) 23 os.unlink(test_support.TESTFN) 54 marshal.dump(b, file(test_support.TESTFN, "wb")) 55 new = marshal.load(file(test_support.TESTFN, "rb")) 70 marshal.dump(f, file(test_support.TESTFN, "wb")) 71 got = marshal.load(file(test_support.TESTFN, "rb")) 97 marshal.dump(f, file(test_support.TESTFN, "wb")) 98 got = marshal.load(file(test_support.TESTFN, "rb")) 101 marshal.dump(f, file(test_support.TESTFN, "wb"), 1 [all...] |
test_posixpath.py | 7 # An absolute path to a temporary filename for testing. We can't rely on TESTFN 10 ABSTFN = abspath(test_support.TESTFN) 35 test_support.unlink(test_support.TESTFN + suffix) 36 safe_rmdir(test_support.TESTFN + suffix) 94 self.assertIs(posixpath.islink(test_support.TESTFN + "1"), False) 95 f = open(test_support.TESTFN + "1", "wb") 99 self.assertIs(posixpath.islink(test_support.TESTFN + "1"), False) 101 os.symlink(test_support.TESTFN + "1", test_support.TESTFN + "2") 102 self.assertIs(posixpath.islink(test_support.TESTFN + "2"), True [all...] |
test_file.py | 15 from test.test_support import TESTFN, run_unittest 22 self.f = self.open(TESTFN, 'wb') 27 os.remove(TESTFN) 50 self.f = self.open(TESTFN, 'rb') 58 self.f = self.open(TESTFN, 'r') 67 self.f = self.open(TESTFN, 'rb') 90 self.assertEqual(f.name, TESTFN) 150 f = self.open(TESTFN, mode) 171 f = self.open(TESTFN, bad_mode) 175 if TESTFN in s or bad_mode not in s [all...] |
test_fileio.py | 15 from test.test_support import TESTFN, check_warnings, run_unittest, make_bad_fd 25 self.f = _FileIO(TESTFN, 'w') 30 os.remove(TESTFN) 72 self.f = _FileIO(TESTFN, 'r') 80 self.f = _FileIO(TESTFN, 'rb') 88 self.f = _FileIO(TESTFN, 'rb') 99 self.f = _FileIO(TESTFN, 'r') 118 #self.assertEqual(f.name, TESTFN) 122 f = _FileIO(TESTFN, 'r') 244 self.f = _FileIO(TESTFN, 'r' [all...] |
test_univnewlines2k.py | 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: 84 execfile(test_support.TESTFN, namespace) 109 with open(test_support.TESTFN, self.READMODE) as fp:
|
test_bufio.py | 19 # Ensure we can open TESTFN for writing. 20 support.unlink(support.TESTFN) 24 f = self.open(support.TESTFN, "wb") 31 f = open(support.TESTFN, "rb") 40 support.unlink(support.TESTFN)
|