Lines Matching refs:temp_file
118 temp_file = self.getBuildArtifact("test")
119 with open(temp_file, "wb"):
126 binascii.b2a_hex(temp_file.encode()).decode(),),
140 with open(temp_path, "wb") as temp_file:
141 temp_file.write(test_data)
163 with open(temp_path, "wb") as temp_file:
164 os.chmod(temp_file.fileno(), test_mode)
233 with tempfile.NamedTemporaryFile() as temp_file:
234 temp_file.write(b"some test data for stat")
235 temp_file.flush()
240 binascii.b2a_hex(temp_file.name.encode()).decode(),),
265 sys_stat = os.fstat(temp_file.fileno())
329 with open(temp_path, "wb") as temp_file:
330 temp_file.write(test_data.encode())
406 with open(temp_path, "rb") as temp_file:
408 self.assertEqual(os.fstat(temp_file.fileno()).st_mode & 0o7777,
417 self.assertEqual(temp_file.read(), data)