/third_party/python/Lib/test/ |
D | test_tempfile.py | 2 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 …]
|
D | make_ssl_certs.py | 7 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/ |
D | stream05.c | 52 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/ |
D | test_summary_collector.py | 17 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 …]
|
D | test_histogram_summary.py | 19 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:
|
D | test_summary_record.py | 18 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/ |
D | open09.c | 38 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.py | 20 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/ |
D | generate.sh | 19 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/ |
D | 90-test_shlibload.t | 36 (my $fh, my $filename) = tempfile(); 41 ($fh, $filename) = tempfile(); 46 ($fh, $filename) = tempfile(); 51 ($fh, $filename) = tempfile(); 56 ($fh, $filename) = tempfile();
|
D | 70-test_tlsextms.t | 99 (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/ |
D | generate.sh | 19 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/ |
D | dump_test_utils.py | 20 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/ |
D | fix-xmltest-log.sh | 37 tempfile="$(mktemp)" 47 "${filename}" > "${tempfile}" 48 mv "${tempfile}" "${filename}"
|
D | buildconf.sh | 48 local tempfile="$(mktemp)" 49 sed "${first_line_to_delete},${last_line_to_delete}d" "${filename}" > "${tempfile}" 50 mv "${tempfile}" "${filename}"
|
/third_party/expat/ |
D | fix-xmltest-log.sh | 37 tempfile="$(mktemp)" 47 "${filename}" > "${tempfile}" 48 mv "${tempfile}" "${filename}"
|
/third_party/python/Tools/scripts/ |
D | get-remote-certificate.py | 12 import tempfile 31 tn = tempfile.mktemp() 35 tn2 = (outfile or tempfile.mktemp()) 49 tfile = tempfile.mktemp()
|
/third_party/toybox/toys/other/ |
D | dos2unix.c | 31 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/ |
D | test_lll.py | 4 import tempfile 20 with tempfile.TemporaryDirectory() as dir1, \ 21 tempfile.TemporaryDirectory() as dir2:
|
/third_party/mindspore/tests/st/networks/ |
D | test_gpu_lenet_enable_rdr.py | 2 import tempfile 19 with tempfile.TemporaryDirectory() as tmpdir: 26 with tempfile.TemporaryDirectory() as tmpdir:
|
/third_party/glib/gobject/tests/ |
D | mkenums.py | 28 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/ |
D | test_framework_parser.py | 19 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
|
D | test_minddata_pipeline_parser.py | 19 import tempfile 48 self._output_path_1 = tempfile.mkdtemp( 55 self._output_path_2 = tempfile.mkdtemp(
|
/third_party/python/Doc/library/ |
D | tempfile.rst | 1 :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/ |
D | update_fuzzer.py | 18 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:
|