Home
last modified time | relevance | path

Searched refs:open (Results 26 - 50 of 2966) sorted by relevance

12345678910>>...119

/third_party/python/Lib/test/
H A Dtest_mmap.py48 f = open(TESTFN, 'bw+')
128 f = open(TESTFN, 'rb')
141 with open(TESTFN, "wb") as fp:
143 with open(TESTFN, "rb") as f:
190 with open(TESTFN, "rb") as fp:
195 with open(TESTFN, "r+b") as f:
212 with open(TESTFN, 'r+b') as f:
216 with open(TESTFN, "r+b") as f:
224 with open(TESTFN, 'rb') as f:
230 with open(TESTF
[all...]
H A Dtest_wave.py117 wave.open(io.BytesIO(b))
123 wave.open(io.BytesIO(b))
129 wave.open(io.BytesIO(b))
135 wave.open(io.BytesIO(b))
142 wave.open(io.BytesIO(b))
148 wave.open(io.BytesIO(b))
155 wave.open(io.BytesIO(b))
162 wave.open(io.BytesIO(b))
169 wave.open(io.BytesIO(b))
H A Dtest_getpass.py101 with mock.patch('os.open') as open, \
104 # By setting open's return value to None the implementation will
107 open.return_value = None
109 open.assert_called_once_with('/dev/tty',
111 fileio.assert_called_once_with(open.return_value, 'w+')
115 with mock.patch('os.open') as open, \
120 open.return_value = 3
127 with mock.patch('os.open') a
[all...]
H A Dtest_bufio.py17 # Write s + "\n" + s to file, then open it and ensure that successive
20 # Ensure we can open TESTFN for writing.
25 f = self.open(os_helper.TESTFN, "wb")
32 f = open(os_helper.TESTFN, "rb")
67 open = io.open variable in CBufferSizeTest
70 open = staticmethod(pyio.open) variable in PyBufferSizeTest
H A Dtest_zipfile.py63 with open(TESTFN, "wb") as fp:
73 with zipfp.open('written-open-w', mode='w') as f:
109 self.assertIn("written-open-w", names)
118 self.assertIn("written-open-w", names)
123 for nm in (TESTFN, "another.name", "strfile", "written-open-w"):
141 with zipfp.open(TESTFN) as zipopen1:
149 with zipfp.open("another.name") as zipopen2:
175 with zipfp.open(TESTFN) as zipopen1:
193 zipfp.open(TESTF
[all...]
H A Dtest_uu.py214 with open(self.tmpin, 'wb') as fin:
217 with open(self.tmpin, 'rb') as fin:
218 with open(self.tmpout, 'wb') as fout:
221 with open(self.tmpout, 'rb') as fout:
227 with open(self.tmpout, 'rb') as fout:
234 with open(self.tmpin, 'wb') as f:
237 with open(self.tmpin, 'rb') as f:
240 with open(self.tmpout, 'rb') as f:
247 with open(self.tmpin, 'wb') as f:
252 with open(sel
[all...]
H A Dtest_sunau.py129 sunau.open(io.BytesIO(b))
132 sunau.open(io.BytesIO(b))
138 sunau.open(io.BytesIO(b))
145 sunau.open(io.BytesIO(b))
150 sunau.open(io.BytesIO(b))
156 sunau.open(io.BytesIO(b))
/third_party/python/Lib/test/test_tools/
H A Dtest_pindent.py21 with open(fn1) as f1, open(fn2) as f2:
40 with open(self.script, encoding='utf-8') as f:
42 with open(data_path, 'w', encoding='utf-8') as f:
50 with open(backup, encoding='utf-8') as f:
52 with open(data_path, encoding='utf-8') as f:
61 with open(backup, encoding='utf-8') as f:
63 with open(data_path, encoding='utf-8') as f:
67 with open(data_path, 'w', encoding='utf-8') as f:
72 with open(backu
[all...]
/third_party/skia/third_party/externals/brotli/python/tests/
H A Dcompressor_test.py28 with open(temp_uncompressed, 'wb') as out_file:
29 with open(temp_compressed, 'rb') as in_file:
36 with open(temp_compressed, 'wb') as out_file:
37 with open(test_data, 'rb') as in_file:
45 with open(temp_compressed, 'wb') as out_file:
46 with open(test_data, 'rb') as in_file:
56 with open(temp_compressed, 'wb') as out_file:
57 with open(test_data, 'rb') as in_file:
/third_party/PyYAML/tests/lib/
H A Dtest_yaml_ext.py157 with open(data_filename, 'rb') as file1, open(data_filename, 'rb') as file2:
159 with open(data_filename, 'rb') as file1, open(data_filename, 'rb') as file2:
161 with open(canonical_filename, 'rb') as file1, open(canonical_filename, 'rb') as file2:
163 with open(canonical_filename, 'rb') as file1, open(canonical_filename, 'rb') as file2:
190 with open(data_filename, 'rb') as file1, open(data_filenam
[all...]
H A Dtest_input_output.py6 with open(unicode_filename, 'rb') as file:
27 with open(unicode_filename, 'rb') as file:
52 with open(unicode_filename, 'rb') as file:
88 with open(unicode_filename, 'rb') as file:
99 with open(filename, 'w', encoding='utf-16-le') as stream:
101 with open(filename, 'r', encoding='utf-16-le') as file:
103 with open(filename, 'wb') as stream:
105 with open(filename, 'r', encoding='utf-8') as file:
117 with open(unicode_filename, 'rb') as file:
H A Dtest_resolver.py9 with open(detect_filename, 'r') as file:
11 with open(data_filename, 'rb') as file:
63 with open(data_filename, 'rb') as file:
65 with open(path_filename, 'rb') as file:
81 with open(filename, 'rb') as file:
86 with open(data_filename, 'rb') as file:
H A Dtest_errors.py6 with open(error_filename, 'rb') as file:
18 with open(error_filename, 'rb') as file:
30 with open(error_filename, 'rb') as file:
41 with open(error_filename, 'rb') as file:
54 with open(error_filename, 'rb') as file:
/third_party/musl/libc-test/src/functionalext/supplement/fcntl/fcntl_gtest/
H A Dfcntl_fcntl_test.cpp24 int fd = open("test_fcntl_001.txt", O_RDONLY | O_CREAT, 0644); in HWTEST_F()
41 int fd = open("test_fcntl_002.txt", O_RDONLY | O_CREAT, 0644); in HWTEST_F()
58 int fd = open("test_fcntl_003.txt", O_RDWR | O_CREAT, 0644); in HWTEST_F()
79 int fd = open("test_fcntl_004.txt", O_RDWR | O_CREAT, 0644); in HWTEST_F()
101 int fd = open("test_fcntl_005.txt", O_RDWR | O_CREAT, 0666); in HWTEST_F()
120 int fd = open("test_fcntl_006.txt", O_RDWR | O_CREAT, 0666); in HWTEST_F()
141 int fd = open("test_fcntl_007.txt", O_CREAT | O_RDWR, S_IRWXU); in HWTEST_F()
161 int fd = open("test_fcntl_008.txt", O_RDONLY | O_CREAT, 0644); in HWTEST_F()
184 int fd = open("test_fcntl_009.txt", O_RDWR | O_CREAT, 0644); in HWTEST_F()
206 int fd = open("test_fcntl_01 in HWTEST_F()
[all...]
/third_party/python/Lib/unittest/test/testmock/
H A Dtestwith.py146 with patch('%s.open' % __name__, mock, create=True) as patched:
148 open('foo')
156 with patch('%s.open' % __name__, mock, create=True):
157 with open('foo') as f:
167 with patch('%s.open' % __name__, mock, create=True):
168 with open('foo') as f:
170 with open('bar') as f:
184 with patch('%s.open' % __name__, mock, create=True) as patched:
186 open('foo')
193 with patch('%s.open'
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dflock.c28 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0100()
46 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0200()
64 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0300()
82 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0400()
100 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0500()
129 int fd = open("/data/test.txt", O_RDWR | O_CREAT, TEST_MODE); in flock_0700()
H A Dcopy_file_range.c38 fd_in = open(path_in, O_RDWR | O_CREAT, TEST_MODE); in copy_file_range_0100()
40 t_error("%s open path_in failed\n", __func__); in copy_file_range_0100()
51 fd_in = open(path_in, O_RDONLY); in copy_file_range_0100()
53 fd_out = open(path_out, O_RDWR | O_CREAT, TEST_MODE); in copy_file_range_0100()
55 t_error("%s open path_out failed\n", __func__); in copy_file_range_0100()
69 fd_out = open(path_out, O_RDONLY); in copy_file_range_0100()
117 fd_in = open(path_in, O_WRONLY | O_CREAT, TEST_MODE); in copy_file_range_0300()
119 t_error("%s open path_in failed\n", __func__); in copy_file_range_0300()
130 fd_in = open(path_in, O_WRONLY); in copy_file_range_0300()
132 fd_out = open(path_ou in copy_file_range_0300()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A Drename.c28 int fd = open(oldname, O_RDONLY | O_CREAT, TEST_MODE); in rename_0100()
34 fd = open(oldname, O_RDONLY); in rename_0100()
36 fd = open(newname, O_RDONLY); in rename_0100()
64 int fd_old = open(oldname, O_RDWR | O_CREAT, TEST_MODE); in rename_0300()
72 int fd_new = open(newname, O_RDWR | O_CREAT, TEST_MODE); in rename_0300()
83 int fd = open(newname, O_RDONLY); in rename_0300()
/third_party/notofonts/scripts/
H A Dbuild-site.py16 results = json.load(open("docs/noto.json"))
17 versions = json.load(open("docs/versions.json"))
72 template = open("scripts/template.html", "r").read()
99 with open("docs/index.html", "w") as fh:
102 bug_template = open("scripts/bugreporter.html", "r").read()
105 with open("docs/reporter.html", "w") as fh:
109 results, open("debug.json", "w"), indent=True, sort_keys=True
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dlseek.c39 int fd = open("lseek64_function_test.c", O_RDWR | O_CREAT, TEST_MODE); in lseek64_0100()
41 t_error("open file failed\n"); in lseek64_0100()
66 int fd = open("/data/readtest.txt", O_RDWR | O_CREAT, TEST_MODE); in lseek_0100()
83 int fd = open("/data/readtest.txt", O_RDWR | O_CREAT, TEST_MODE); in lseek_0200()
100 int fd = open("/data/readtest.txt", O_RDWR | O_CREAT, TEST_MODE); in lseek_0300()
118 int fd = open("/data/readtest.txt", O_RDWR | O_CREAT, TEST_MODE); in lseek_0400()
135 int fd = open("/data/readtest.txt", O_RDWR | O_CREAT, TEST_MODE); in lseek_0500()
152 int fd = open("/data/readtest.txt", O_RDWR | O_CREAT, TEST_MODE); in lseek_0600()
H A Dwrite.c34 int fd = open(path, O_RDWR | O_RSYNC | O_CREAT, 0664); in write_0100()
44 fd = open(path, O_RDWR); in write_0100()
68 int fd = open(path, O_RDWR | O_RSYNC | O_CREAT, 0664); in write_0200()
92 int fd = open(path, O_RDWR | O_RSYNC | O_CREAT, 0664); in write_0300()
116 int fd = open(path, O_RDWR); in write_0400()
136 int fd = open(path, O_RDWR | O_RSYNC | O_CREAT, 0664); in write_0500()
/third_party/python/Lib/
H A Dwebbrowser.py13 __all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"]
69 # It is recommended one does "import webbrowser" and uses webbrowser.open(url)
72 def open(url, new=0, autoraise=True): function
75 If possible, open url in a location determined by new.
87 if browser.open(url, new, autoraise):
94 If not possible, then open url in the only browser window.
96 return open(url, 1)
103 return open(url, 2)
149 def open(self, url, new=0, autoraise=True): member in BaseBrowser
153 return self.open(ur
173 def open(self, url, new=0, autoraise=True): global() member in GenericBrowser
191 def open(self, url, new=0, autoraise=True): global() member in BackgroundBrowser
258 def open(self, url, new=0, autoraise=True): global() member in UnixBrowser
359 def open(self, url, new=0, autoraise=True): global() member in Konqueror
443 def open(self, url, new=0, autoraise=True): global() member in Grail
606 def open(self, url, new=0, autoraise=True): global() member in .WindowsDefault
638 def open(self, url, new=0, autoraise=True): global() member in .MacOSX
690 def open(self, url, new=0, autoraise=True): global() member in .MacOSXOSAScript
[all...]
/third_party/pulseaudio/src/tests/
H A Dclose-test.c12 open("/dev/null", O_RDONLY); in main()
13 open("/dev/null", O_RDONLY); in main()
14 open("/dev/null", O_RDONLY); in main()
15 open("/dev/null", O_RDONLY); in main()
/third_party/node/test/parallel/
H A Dtest-fs-promises-file-handle-read.js9 const { open } = fs.promises;
27 const fileHandle = await open(filePath, 'w+');
28 const streamFileHandle = await open(filePath, 'w+');
56 const fileHandle = await open(filePath, 'r');
66 const fileHandle = await open(filePath, 'r');
77 const fileHandle = await open(filePath, 'r');
94 const fileHandle = await open(filePath, 'r');
H A Dtest-fs-write-stream-change-open.js36 const _fs_open = fs.open;
38 // Change the fs.open with an identical function after the WriteStream
41 fs.open = function() {
48 fs.open = _fs_open;
56 assert.strictEqual(fs.open, _fs_open);

Completed in 12 milliseconds

12345678910>>...119