Home
last modified time | relevance | path

Searched refs:TemporaryFile (Results 1 – 25 of 52) sorted by relevance

123

/external/python/cpython3/Lib/test/
Dtest_csv.py8 from tempfile import TemporaryFile
123 with TemporaryFile("w+", newline='') as fileobj:
131 with TemporaryFile("w+", newline='') as fileobj:
207 with TemporaryFile("w+", newline='') as fileobj:
215 with TemporaryFile("w+", newline='') as fileobj:
221 with TemporaryFile("w+", newline='') as fileobj:
227 with TemporaryFile("w+", newline='') as fileobj:
238 with TemporaryFile("w+", newline='') as fileobj:
335 with TemporaryFile("w+", newline='') as fileobj:
345 with TemporaryFile("w+", newline='') as fileobj:
[all …]
Dtest_zipfile64.py18 from tempfile import TemporaryFile
74 with TemporaryFile() as f:
83 with TemporaryFile() as f:
Dtest_faulthandler.py288 with tempfile.TemporaryFile('wb+') as fp:
442 with tempfile.TemporaryFile('wb+') as fp:
615 with tempfile.TemporaryFile('wb+') as fp:
717 with tempfile.TemporaryFile('wb+') as fp:
Dthreaded_import_hangers.py32 ("tempfile.TemporaryFile", lambda: tempfile.TemporaryFile().close(), ()),
Dtest_threadedtempfile.py38 f = tempfile.TemporaryFile("w+b")
Dtest_ntpath.py8 from tempfile import TemporaryFile
384 with TemporaryFile() as tf1, TemporaryFile() as tf2:
Dtest_subprocess.py171 tf = tempfile.TemporaryFile()
200 tf = tempfile.TemporaryFile()
445 tf = tempfile.TemporaryFile()
458 tf = tempfile.TemporaryFile()
478 tf = tempfile.TemporaryFile()
490 tf = tempfile.TemporaryFile()
509 tf = tempfile.TemporaryFile()
521 tf = tempfile.TemporaryFile()
565 tf = tempfile.TemporaryFile()
1424 tf = tempfile.TemporaryFile()
[all …]
Dtest_zipfile.py13 from tempfile import TemporaryFile
36 with TemporaryFile() as f:
845 with TemporaryFile() as t, zipfile.PyZipFile(t, "w") as zipfp:
862 with TemporaryFile() as t, zipfile.PyZipFile(t, "w") as zipfp:
878 with TemporaryFile() as t, zipfile.PyZipFile(t, "w") as zipfp:
892 with TemporaryFile() as t, zipfile.PyZipFile(t, "w") as zipfp:
924 with TemporaryFile() as t, \
944 with TemporaryFile() as t, zipfile.PyZipFile(t, "w") as zipfp:
964 with TemporaryFile() as t, zipfile.PyZipFile(t, "w") as zipfp:
976 with TemporaryFile() as t, zipfile.PyZipFile(t, "w") as zipfp:
[all …]
Dtest_tempfile.py1219 if tempfile.NamedTemporaryFile is not tempfile.TemporaryFile:
1227 tempfile.TemporaryFile()
1232 f = tempfile.TemporaryFile(dir=dir)
1247 f = tempfile.TemporaryFile()
1257 with tempfile.TemporaryFile(*args, **kwargs) as fileobj:
1277 self.assertRaises(ValueError, tempfile.TemporaryFile)
/external/minijail/
Dsystem_unittest.cc98 class TemporaryFile { class
100 TemporaryFile() : path(temp_path_pattern()) { in TemporaryFile() function in __anon4ccbf8ce0111::TemporaryFile
108 ~TemporaryFile() { in ~TemporaryFile()
119 TemporaryFile(const TemporaryFile&) = delete;
120 TemporaryFile& operator=(const TemporaryFile&) = delete;
203 TemporaryFile tmp; in TEST()
/external/python/cpython2/Lib/test/
Dtest_zipfile.py16 from tempfile import TemporaryFile
119 for f in (TESTFN2, TemporaryFile(), StringIO()):
147 for f in (TESTFN2, TemporaryFile(), StringIO()):
186 for f in (TESTFN2, TemporaryFile(), StringIO()):
254 for f in (TESTFN2, TemporaryFile(), StringIO()):
258 for f in (TESTFN2, TemporaryFile(), StringIO()):
262 for f in (TESTFN2, TemporaryFile(), StringIO()):
266 for f in (TESTFN2, TemporaryFile(), StringIO()):
271 for f in (TESTFN2, TemporaryFile(), StringIO()):
276 for f in (TESTFN2, TemporaryFile(), StringIO()):
[all …]
Dtest_zipfile64.py24 from tempfile import TemporaryFile
82 with TemporaryFile() as f:
91 with TemporaryFile() as f:
Dthreaded_import_hangers.py32 ("tempfile.TemporaryFile", tempfile.TemporaryFile, ()),
Dtest_threadedtempfile.py38 f = tempfile.TemporaryFile("w+b")
Dtest_subprocess.py225 tf = tempfile.TemporaryFile()
237 tf = tempfile.TemporaryFile()
256 tf = tempfile.TemporaryFile()
267 tf = tempfile.TemporaryFile()
285 tf = tempfile.TemporaryFile()
296 tf = tempfile.TemporaryFile()
339 tf = tempfile.TemporaryFile()
Dtest_tempfile.py1058 tempfile.TemporaryFile()
1065 f = tempfile.TemporaryFile(dir=dir)
1081 f = tempfile.TemporaryFile()
1093 if tempfile.NamedTemporaryFile is not tempfile.TemporaryFile:
/external/autotest/client/common_lib/cros/fake_device_server/
Dcommon_util_unittest.py26 json_file = tempfile.TemporaryFile()
38 json_file = tempfile.TemporaryFile()
/external/python/cpython3/Doc/library/
Dtempfile.rst18 supported platforms. :class:`TemporaryFile`, :class:`NamedTemporaryFile`,
34 .. function:: TemporaryFile(mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, p…
72 This function operates exactly as :func:`TemporaryFile` does, except that
88 This function operates exactly as :func:`TemporaryFile` does, except that
92 :func:`TemporaryFile`.
137 Unlike :func:`TemporaryFile`, the user of :func:`mkstemp` is responsible
270 >>> fp = tempfile.TemporaryFile()
280 >>> with tempfile.TemporaryFile() as fp:
/external/python/cpython2/Doc/library/
Dtempfile.rst38 .. function:: TemporaryFile([mode='w+b'[, bufsize=-1[, suffix=''[, prefix='tmp'[, dir=None]]]]])
64 This function operates exactly as :func:`TemporaryFile` does, except that
86 This function operates exactly as :func:`TemporaryFile` does, except that
90 :func:`TemporaryFile`. Also, it's ``truncate`` method does not
114 Unlike :func:`TemporaryFile`, the user of :func:`mkstemp` is responsible
/external/bcc/tests/python/
Dtest_bpf_log.py40 self.fp = tempfile.TemporaryFile()
/external/python/cpython2/Lib/
Dtempfile.py487 TemporaryFile = NamedTemporaryFile variable
490 def TemporaryFile(mode='w+b', bufsize=-1, suffix="", function
542 newfile = self._file = TemporaryFile(*self._TemporaryFileArgs)
/external/python/cpython3/Lib/
Dtempfile.py561 TemporaryFile = NamedTemporaryFile variable
569 def TemporaryFile(mode='w+b', buffering=-1, encoding=None, function
660 newfile = self._file = TemporaryFile(**self._TemporaryFileArgs)
/external/harfbuzz_ng/test/fuzzing/
Drun-shape-fuzzer-tests.py29 with tempfile.TemporaryFile() as tempf:
/external/autotest/client/site_tests/hardware_TouchScreenPowerCycles/
Dhardware_TouchScreenPowerCycles.py83 self.event_file = tempfile.TemporaryFile()
/external/boringssl/src/util/bot/
Dupdate_clang.py92 with tempfile.TemporaryFile() as f:

123