HomeSort by relevance Sort by last modified time
    Searched full:testfn (Results 1 - 25 of 197) sorted by null

1 2 3 4 5 6 7 8

  /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_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_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_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_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_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_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_mmap.py 1 from test.test_support import (TESTFN, run_unittest, import_module, unlink,
13 if os.path.exists(TESTFN):
14 os.unlink(TESTFN)
18 os.unlink(TESTFN)
26 f = open(TESTFN, 'w+')
105 f = open(TESTFN)
122 open(TESTFN, "wb").write("a"*mapsize)
123 f = open(TESTFN, "rb")
172 self.assertEqual(open(TESTFN, "rb").read(), 'a'*mapsize,
177 f = open(TESTFN, "r+b"
    [all...]
test_zipfile.py 21 from test.test_support import TESTFN, TESTFN_UNICODE, TESTFN_ENCODING, \
30 TESTFN2 = TESTFN + "2"
31 TESTFNDIR = TESTFN + "d"
47 with open(TESTFN, "wb") as fp:
53 zipfp.write(TESTFN, "another.name")
54 zipfp.write(TESTFN, TESTFN)
62 self.assertEqual(zipfp.read(TESTFN), self.data)
92 self.assertIn(TESTFN, names)
100 self.assertIn(TESTFN, names
    [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_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_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_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_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_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_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_mmap.py 1 from test.test_support import (TESTFN, run_unittest, import_module, unlink,
13 if os.path.exists(TESTFN):
14 os.unlink(TESTFN)
18 os.unlink(TESTFN)
26 f = open(TESTFN, 'w+')
105 f = open(TESTFN)
122 open(TESTFN, "wb").write("a"*mapsize)
123 f = open(TESTFN, "rb")
172 self.assertEqual(open(TESTFN, "rb").read(), 'a'*mapsize,
177 f = open(TESTFN, "r+b"
    [all...]
test_zipfile.py 21 from test.test_support import TESTFN, TESTFN_UNICODE, TESTFN_ENCODING, \
30 TESTFN2 = TESTFN + "2"
31 TESTFNDIR = TESTFN + "d"
47 with open(TESTFN, "wb") as fp:
53 zipfp.write(TESTFN, "another.name")
54 zipfp.write(TESTFN, TESTFN)
62 self.assertEqual(zipfp.read(TESTFN), self.data)
92 self.assertIn(TESTFN, names)
100 self.assertIn(TESTFN, names
    [all...]
  /external/llvm/test/MC/AArch64/
adrp-relocation.s 4 // testfn. The important point is that LLVM shouldn't think it can deal with the
6 // relative offsets of testfn and foo) because its value depends on where this

Completed in 1166 milliseconds

1 2 3 4 5 6 7 8