Lines Matching refs:filename
25 filename = test_support.TESTFN variable in TestGzip
28 test_support.unlink(self.filename)
31 test_support.unlink(self.filename)
35 with gzip.GzipFile(self.filename, 'w'+mode) as f:
38 with gzip.GzipFile(self.filename, 'r'+mode) as f:
48 self.filename = unicode_filename
59 with gzip.GzipFile(self.filename, 'wb') as f:
82 with gzip.GzipFile(self.filename, 'wb') as f:
88 with gzip.GzipFile(self.filename, 'rb') as f:
94 with gzip.GzipFile(self.filename, 'r') as f:
101 with gzip.GzipFile(self.filename, 'rU') as f:
111 f = gzip.GzipFile(self.filename, 'r')
120 f = gzip.GzipFile(self.filename, 'w')
130 with gzip.GzipFile(self.filename, 'ab') as f:
133 with gzip.GzipFile(self.filename, 'rb') as f:
141 with gzip.open(self.filename, 'wb', 9) as f:
144 with gzip.open(self.filename, "ab", 9) as f: # append
148 with gzip.open(self.filename, "rb") as zgfile:
161 with gzip.GzipFile(self.filename, 'rb') as f:
171 with gzip.GzipFile(self.filename, 'rb') as f:
183 with gzip.GzipFile(self.filename, 'rb') as f:
186 with gzip.GzipFile(self.filename, 'rb') as f:
195 with gzip.GzipFile(self.filename) as f:
214 with gzip.GzipFile(self.filename) as f:
222 with gzip.GzipFile(self.filename, 'w') as f:
229 with gzip.GzipFile(self.filename, 'r') as f:
234 with gzip.GzipFile(self.filename, mode) as f:
236 self.assertEqual(f.name, self.filename)
240 with gzip.GzipFile(self.filename, 'w', mtime = mtime) as fWrite:
242 with gzip.GzipFile(self.filename) as fRead:
251 with gzip.GzipFile(self.filename, 'w', mtime = mtime) as fWrite:
254 with open(self.filename, 'rb') as fRead:
279 expected = self.filename.encode('Latin-1') + '\x00'
285 fRead.seek(os.stat(self.filename).st_size - 8)
295 with gzip.GzipFile(self.filename, "wb") as f:
297 f = gzip.GzipFile(self.filename, "rb")
307 with gzip.GzipFile(self.filename, "wb") as f:
315 with gzip.GzipFile(self.filename, "wb") as f:
319 with open(self.filename, "ab") as f:
322 with gzip.GzipFile(self.filename, "rb") as f:
329 fd = os.open(self.filename, os.O_WRONLY | os.O_CREAT)