Lines Matching refs:open
289 with support.swap_attr(os, "open", raise_OSError):
290 # test again with failing os.open()
363 open(tempdir, 'wb').close()
571 fd = os.open(p, os.O_RDWR | os.O_CREAT)
903 os.close(os.open(self.name, self._bflags, 0o600))
1064 mock.patch('io.open', mock.mock_open()) as mock_open:
1466 mock.patch('os.open') as mock_open, \
1514 with open(os.path.join(path, "test%d.txt" % i), "wb") as f:
1548 with open(temp_path / "a_file.txt", "w+t") as open_file:
1590 open(file1, 'wb').close()
1643 open(file1, 'wb').close()
1704 with open(temp_path / "a_file.txt", "w+t") as open_file:
1733 with open(os.path.join(tmp2, "test0.txt"), "w") as f:
1763 with open(temp_dir_2 / "test0.txt", "w") as test_file:
1765 open_file = open(temp_dir_2 / "open_file.txt", "w")
1858 open(filename, "w").close()