Home
last modified time | relevance | path

Searched refs:tempfile (Results 1 – 25 of 370) sorted by relevance

12345678910>>...15

/third_party/python/Lib/test/
Dtest_tempfile.py2 import tempfile
23 has_textmode = (tempfile._text_openflags != tempfile._bin_openflags)
39 self.assertIs(str, tempfile._infer_return_type(''))
40 self.assertIs(bytes, tempfile._infer_return_type(b''))
41 self.assertIs(str, tempfile._infer_return_type(None))
44 self.assertIs(str, tempfile._infer_return_type('', ''))
45 self.assertIs(bytes, tempfile._infer_return_type(b'', b''))
47 tempfile._infer_return_type('', b'')
49 tempfile._infer_return_type(b'', '')
52 self.assertIs(str, tempfile._infer_return_type(None, ''))
[all …]
Dmake_ssl_certs.py7 import tempfile
124 with tempfile.NamedTemporaryFile(delete=False) as f:
141 with tempfile.NamedTemporaryFile(delete=False) as f:
189 with tempfile.NamedTemporaryFile("w") as t:
198 with tempfile.NamedTemporaryFile() as f:
/third_party/ltp/testcases/kernel/fs/stream/
Dstream05.c52 char tempfile[40] = ""; variable
73 sprintf(tempfile, "stream05.%d", getpid()); in main()
76 if ((stream = fopen(tempfile, "a+")) == NULL) { in main()
78 tempfile, in main()
84 if ((stream = fopen(tempfile, "r+")) == NULL) { in main()
86 tempfile, in main()
135 if ((stream = fopen(tempfile, "r+")) == NULL) { in main()
137 tempfile, in main()
182 if ((stream = fopen(tempfile, "rb")) == NULL) { in main()
184 tempfile, in main()
[all …]
/third_party/mindspore/tests/ut/python/train/summary/
Dtest_summary_collector.py17 import tempfile
77 self.base_summary_dir = tempfile.mkdtemp(suffix='summary')
104 summary_dir = tempfile.mkdtemp(dir=self.base_summary_dir)
116 summary_dir = tempfile.mkdtemp(dir=self.base_summary_dir)
133 summary_dir = tempfile.mkdtemp(dir=self.base_summary_dir)
144 summary_dir = tempfile.mkdtemp(dir=self.base_summary_dir)
161 summary_dir = tempfile.mkdtemp(dir=self.base_summary_dir)
176 summary_dir = tempfile.mkdtemp(dir=self.base_summary_dir)
196 summary_dir = tempfile.mkdtemp(dir=self.base_summary_dir)
219 summary_dir = tempfile.mkdtemp(dir=self.base_summary_dir)
[all …]
Dtest_histogram_summary.py19 import tempfile
55 with tempfile.TemporaryDirectory() as tmp_dir:
69 with tempfile.TemporaryDirectory() as tmp_dir:
93 with tempfile.TemporaryDirectory() as tmp_dir:
108 with tempfile.TemporaryDirectory() as tmp_dir:
128 with tempfile.TemporaryDirectory() as tmp_dir:
149 with tempfile.TemporaryDirectory() as tmp_dir:
174 with tempfile.TemporaryDirectory() as tmp_dir:
Dtest_summary_record.py18 import tempfile
55 self.base_summary_dir = tempfile.mkdtemp(suffix='summary')
72 summary_dir = tempfile.mkdtemp(dir=self.base_summary_dir)
82 summary_dir = tempfile.mkdtemp(dir=self.base_summary_dir)
/third_party/ltp/testcases/kernel/syscalls/open/
Dopen09.c38 static char tempfile[40] = ""; variable
57 fildes = open(tempfile, O_WRONLY); in main()
69 fildes = open(tempfile, O_RDONLY); in main()
94 sprintf(tempfile, "open09.%d", getpid()); in setup()
96 fildes = creat(tempfile, 0600); in setup()
99 tempfile); in setup()
107 unlink(tempfile); in cleanup()
/third_party/grpc/src/python/grpcio_tests/tests/unit/
D_signal_handling_test.py20 import tempfile
143 with tempfile.TemporaryFile(mode='r') as client_stdout:
144 with tempfile.TemporaryFile(mode='r') as client_stderr:
158 with tempfile.TemporaryFile(mode='r') as client_stdout:
159 with tempfile.TemporaryFile(mode='r') as client_stderr:
172 with tempfile.TemporaryFile(mode='r') as client_stdout:
173 with tempfile.TemporaryFile(mode='r') as client_stderr:
184 with tempfile.TemporaryFile(mode='r') as client_stdout:
185 with tempfile.TemporaryFile(mode='r') as client_stderr:
/third_party/boost/libs/math/doc/equations/
Dgenerate.sh19 tempfile=temp.mml
21 … -e 's/.*\(<math[^>]*>.*<\/math>\).*/\1/' -e 's/<semantics>//g' -e 's/<\/semantics>//g' > $tempfile
24 "$python" $math2svg $tempfile > $svgfile
27 rm $tempfile
/third_party/openssl/test/recipes/
D90-test_shlibload.t36 (my $fh, my $filename) = tempfile();
41 ($fh, $filename) = tempfile();
46 ($fh, $filename) = tempfile();
51 ($fh, $filename) = tempfile();
56 ($fh, $filename) = tempfile();
D70-test_tlsextms.t99 (undef, my $session) = tempfile();
116 (undef, $session) = tempfile();
133 (undef, $session) = tempfile();
150 (undef, $session) = tempfile();
167 (undef, $session) = tempfile();
/third_party/boost/libs/multiprecision/doc/
Dgenerate.sh19 tempfile=temp.mml
21 cat $mmlfile | tr -d "\r\n" | sed -e 's/.*\(<math[^>]*>.*<\/math>\).*/\1/' > $tempfile
24 $python $math2svg $tempfile > $svgfile
27 rm $tempfile
/third_party/mindspore/tests/ut/python/debugger/gpu_tests/
Ddump_test_utils.py20 import tempfile
26 temp_dir = tempfile.mkdtemp(prefix=net_name, dir="./")
36 file = tempfile.mkstemp(prefix=tensor_name_list[x], suffix=".output." + slot +
39 file = tempfile.mkstemp(prefix=tensor_name_list[x], suffix=".input." + slot +
/third_party/skia/third_party/externals/expat/expat/
Dfix-xmltest-log.sh37 tempfile="$(mktemp)"
47 "${filename}" > "${tempfile}"
48 mv "${tempfile}" "${filename}"
Dbuildconf.sh48 local tempfile="$(mktemp)"
49 sed "${first_line_to_delete},${last_line_to_delete}d" "${filename}" > "${tempfile}"
50 mv "${tempfile}" "${filename}"
/third_party/expat/
Dfix-xmltest-log.sh37 tempfile="$(mktemp)"
47 "${filename}" > "${tempfile}"
48 mv "${tempfile}" "${filename}"
/third_party/python/Tools/scripts/
Dget-remote-certificate.py12 import tempfile
31 tn = tempfile.mktemp()
35 tn2 = (outfile or tempfile.mktemp())
49 tfile = tempfile.mktemp()
/third_party/toybox/toys/other/
Ddos2unix.c31 char *tempfile; in GLOBALS() argument
39 if (fd) outfd = copy_tempfile(fd, name, &TT.tempfile);
65 if (fd) replace_tempfile(-1, outfd, &TT.tempfile);
/third_party/python/Lib/test/test_tools/
Dtest_lll.py4 import tempfile
20 with tempfile.TemporaryDirectory() as dir1, \
21 tempfile.TemporaryDirectory() as dir2:
/third_party/mindspore/tests/st/networks/
Dtest_gpu_lenet_enable_rdr.py2 import tempfile
19 with tempfile.TemporaryDirectory() as tmpdir:
26 with tempfile.TemporaryDirectory() as tmpdir:
/third_party/glib/gobject/tests/
Dmkenums.py28 import tempfile
57 self.tmpdir = tempfile.TemporaryDirectory()
76 with tempfile.NamedTemporaryFile(
131 with tempfile.NamedTemporaryFile(
215 with tempfile.NamedTemporaryFile(
469 with tempfile.NamedTemporaryFile(
471 ) as h_file1, tempfile.NamedTemporaryFile(
/third_party/mindspore/tests/ut/python/profiler/parser/
Dtest_framework_parser.py19 import tempfile
52 self._output_path_1 = tempfile.NamedTemporaryFile(prefix='test_framework_parser_').name
55 self._output_path_2 = tempfile.NamedTemporaryFile(prefix='test_framework_parser_').name
58 self._output_path_4 = tempfile.NamedTemporaryFile(prefix='test_framework_parser_').name
Dtest_minddata_pipeline_parser.py19 import tempfile
48 self._output_path_1 = tempfile.mkdtemp(
55 self._output_path_2 = tempfile.mkdtemp(
/third_party/python/Doc/library/
Dtempfile.rst1 :mod:`tempfile` --- Generate temporary files and directories
4 .. module:: tempfile
9 **Source code:** :source:`Lib/tempfile.py`
45 :ref:`tempfile-examples`). On completion of the context or
65 .. audit-event:: tempfile.mkstemp fullpath tempfile.TemporaryFile
90 .. audit-event:: tempfile.mkstemp fullpath tempfile.NamedTemporaryFile
125 :ref:`tempfile-examples`). On completion of the context or destruction
143 .. audit-event:: tempfile.mkdtemp fullpath tempfile.TemporaryDirectory
194 .. audit-event:: tempfile.mkstemp fullpath tempfile.mkstemp
220 .. audit-event:: tempfile.mkdtemp fullpath tempfile.mkdtemp
[all …]
/third_party/skia/resources/sksl/
Dupdate_fuzzer.py18 import tempfile
26 with tempfile.NamedTemporaryFile(suffix='primary.zip', delete=False, mode='w') as pathToPrimaryZip:
27 with tempfile.NamedTemporaryFile(suffix='pad.zip', delete=False, mode='w') as pathToPaddedZip:

12345678910>>...15