• Home
  • Raw
  • Download

Lines Matching refs:filename

47     filename = support.TESTFN  variable in BaseTest
50 support.unlink(self.filename)
53 support.unlink(self.filename)
59 with gzip.GzipFile(self.filename, 'w'+mode) as f:
62 with gzip.GzipFile(self.filename, 'r'+mode) as f:
66 with gzip.GzipFile(self.filename, 'wb') as f:
80 filename = pathlib.Path(self.filename)
81 with gzip.GzipFile(filename, 'w') as f:
84 with gzip.GzipFile(filename, 'a') as f:
86 with gzip.GzipFile(filename) as f:
110 with gzip.GzipFile(self.filename, 'wb') as f:
116 with gzip.GzipFile(self.filename, 'rb') as f:
122 with gzip.GzipFile(self.filename, 'r') as f:
130 with gzip.GzipFile(self.filename, 'r') as f:
155 f = gzip.GzipFile(self.filename, 'r')
167 f = gzip.GzipFile(self.filename, 'w')
180 with gzip.GzipFile(self.filename, 'ab') as f:
183 with gzip.GzipFile(self.filename, 'rb') as f:
191 with gzip.GzipFile(self.filename, 'wb', 9) as f:
194 with gzip.GzipFile(self.filename, "ab", 9) as f: # append
198 with gzip.GzipFile(self.filename, "rb") as zgfile:
207 with gzip.GzipFile(self.filename, 'xb') as f:
209 with gzip.GzipFile(self.filename, 'rb') as f:
212 gzip.GzipFile(self.filename, 'xb')
219 with gzip.GzipFile(self.filename, 'rb') as f:
229 with gzip.GzipFile(self.filename, 'rb') as f:
241 with gzip.GzipFile(self.filename, 'rb') as f:
244 with gzip.GzipFile(self.filename, 'rb') as f:
253 with gzip.GzipFile(self.filename) as f:
272 with gzip.GzipFile(self.filename) as f:
280 with gzip.GzipFile(self.filename, 'w') as f:
287 with gzip.GzipFile(self.filename, 'r') as f:
289 support.unlink(self.filename)
290 with gzip.GzipFile(self.filename, 'x') as f:
295 with gzip.GzipFile(self.filename, mode) as f:
297 self.assertEqual(f.name, self.filename)
301 with gzip.GzipFile(self.filename, 'rb') as f:
303 self.assertEqual(f.fileobj.name, self.filename)
307 with gzip.GzipFile(self.filename, 'w', mtime = mtime) as fWrite:
309 with gzip.GzipFile(self.filename) as fRead:
319 with gzip.GzipFile(self.filename, 'w', mtime = mtime) as fWrite:
322 with open(self.filename, 'rb') as fRead:
347 expected = self.filename.encode('Latin-1') + b'\x00'
353 fRead.seek(os.stat(self.filename).st_size - 8)
363 with gzip.GzipFile(self.filename, "wb") as f:
365 f = gzip.GzipFile(self.filename, "rb")
375 with gzip.GzipFile(self.filename, "wb") as f:
383 with gzip.GzipFile(self.filename, "wb") as f:
387 with open(self.filename, "ab") as f:
390 with gzip.GzipFile(self.filename, "rb") as f:
406 with gzip.GzipFile(self.filename, "wb") as f:
414 with gzip.GzipFile(self.filename, "rb") as f:
430 with gzip.GzipFile(self.filename, 'r') as f:
437 fd = os.open(self.filename, os.O_WRONLY | os.O_CREAT)
443 gzip.GzipFile(self.filename, "wb").close()
444 with open(self.filename, "r+b") as f:
456 with open(self.filename, mode) as f:
461 support.unlink(self.filename)
462 with open(self.filename, mode) as f:
467 str_filename = self.filename
536 with gzip.open(self.filename, "wb") as f:
538 with gzip.open(self.filename, "rb") as f:
545 with gzip.open(self.filename, "wb") as f:
547 with open(self.filename, "rb") as f:
551 with gzip.open(self.filename, "rb") as f:
554 with gzip.open(self.filename, "ab") as f:
556 with open(self.filename, "rb") as f:
561 gzip.open(self.filename, "xb")
562 support.unlink(self.filename)
563 with gzip.open(self.filename, "xb") as f:
565 with open(self.filename, "rb") as f:
570 filename = pathlib.Path(self.filename)
571 with gzip.open(filename, "wb") as f:
573 with gzip.open(filename, "ab") as f:
575 with gzip.open(filename) as f:
582 with gzip.open(self.filename, "w") as f:
584 with open(self.filename, "rb") as f:
588 with gzip.open(self.filename, "r") as f:
591 with gzip.open(self.filename, "a") as f:
593 with open(self.filename, "rb") as f:
598 gzip.open(self.filename, "x")
599 support.unlink(self.filename)
600 with gzip.open(self.filename, "x") as f:
602 with open(self.filename, "rb") as f:
609 with gzip.open(self.filename, "wt") as f:
611 with open(self.filename, "rb") as f:
614 with gzip.open(self.filename, "rt") as f:
616 with gzip.open(self.filename, "at") as f:
618 with open(self.filename, "rb") as f:
638 gzip.open(self.filename, "wbt")
640 gzip.open(self.filename, "xbt")
642 gzip.open(self.filename, "rb", encoding="utf-8")
644 gzip.open(self.filename, "rb", errors="ignore")
646 gzip.open(self.filename, "rb", newline="\n")
652 with gzip.open(self.filename, "wt", encoding="utf-16") as f:
654 with open(self.filename, "rb") as f:
657 with gzip.open(self.filename, "rt", encoding="utf-16") as f:
662 with gzip.open(self.filename, "wb") as f:
664 with gzip.open(self.filename, "rt", encoding="ascii", errors="ignore") \
671 with gzip.open(self.filename, "wt", newline="\n") as f:
673 with gzip.open(self.filename, "rt", newline="\r") as f: