Lines Matching refs:open

93     with open(filename, "xb", 0) as fp:
182 f = os.open(os_helper.TESTFN, os.O_CREAT|os.O_RDWR)
193 first = os.open(os_helper.TESTFN, os.O_CREAT|os.O_RDWR)
209 # close a fd that is open, and one that isn't
222 with open(os_helper.TESTFN, "w+b") as fobj:
243 with open(os_helper.TESTFN, "rb") as fp:
252 fd = os.open(os_helper.TESTFN, os.O_CREAT | os.O_WRONLY)
258 with open(os_helper.TESTFN, "rb") as fobj:
282 fd = os.open(os_helper.TESTFN, os.O_RDONLY)
287 fd = os.open(os_helper.TESTFN, os.O_CREAT|os.O_RDWR)
304 with open(TESTFN2, 'r', encoding='utf-8') as f:
308 f = os.open(path=__file__, flags=os.O_RDONLY, mode=0o777,
333 in_file = open(os_helper.TESTFN, 'rb')
337 out_file = open(TESTFN2, 'w+b')
356 with open(TESTFN2, 'rb') as in_file:
370 in_file = open(os_helper.TESTFN, 'rb')
374 out_file = open(TESTFN4, 'w+b')
395 with open(TESTFN4, 'rb') as in_file:
418 in_file = open(os_helper.TESTFN, 'rb')
453 in_file = open(os_helper.TESTFN, 'rb')
496 out_file = open(TESTFN4, 'w+b')
515 with open(TESTFN4, 'rb') as in_file:
675 # Verify that an open file can be stat'ed
848 with open(filename, 'wb', 0) as fp:
948 with open(self.fname, 'wb', 0) as fp:
1330 with open(path, "x", encoding='utf-8') as f:
1509 fd = os.open(".", os.O_RDONLY)
1545 # fwalk() keeps file descriptors open
1662 with open(path, 'w', encoding='utf-8') as f:
1797 with open(os.devnull, 'wb', 0) as f:
1800 with open(os.devnull, 'rb') as f:
1892 # Check urandom() failing when it is not able to open /dev/random.
1948 with open({TESTFN!r}, 'rb') as f:
2131 with open(os_helper.TESTFN, "x") as f:
2197 valid_fd = os.open(__file__, os.O_RDONLY)
2288 with open(file1, "rb") as f1, open(file2, "rb") as f2:
2435 f = open(os.path.join(self.dir, fn), 'rb')
2582 with open(file_path, 'w', encoding='utf-8') as f:
2961 with open(filename, "w") as f:
3149 with open(filename, "w", encoding="utf-8") as fp:
3292 with open(filename, "w", encoding="utf-8") as fp:
3385 self.file = open(os_helper.TESTFN, 'rb')
3526 with open(TESTFN2, 'rb') as f:
3568 with open(os_helper.TESTFN, "xb", 0) as fp:
3650 with open(path, "rb") as fp:
3653 with open(path, "wb", 0) as fp:
3656 with open(path, "wb", 0) as fp:
3659 with open(path, "rb") as fp:
3721 with open(fd, "wb", closefd=False) as f:
3840 (self.filenames, os.open, os.O_RDONLY),
3921 fd = os.open(__file__, os.O_RDONLY)
3930 fd = os.open(__file__, os.O_RDONLY)
3943 fd = os.open(__file__, os.O_RDONLY)
3954 fd = os.open(__file__, os.O_PATH)
3980 fd = os.open(__file__, os.O_RDONLY)
3993 fd1 = os.open(__file__, os.O_RDONLY)
4008 fd1 = os.open('NUL', os.O_RDONLY)
4016 fd = os.open(__file__, os.O_RDONLY)
4020 fd2 = os.open(__file__, os.O_RDONLY)
4026 fd3 = os.open(__file__, os.O_RDONLY)
4049 ('open', False, (os.O_RDONLY,), getattr(os, 'close', None)),
4059 fd = os.open(FakePath(str_filename), os.O_WRONLY|os.O_CREAT)
4111 fd = os.open(__file__, os.O_RDONLY)
4125 self.assertIn('open', os.__all__)