Lines Matching refs:buffering
4 # * test_bufio - tests file buffering
346 with self.open(support.TESTFN, "wb", buffering=0) as f:
351 with self.open(support.TESTFN, "rb", buffering=0) as f:
428 with self.open(support.TESTFN, "ab", buffering=0) as f:
564 with self.open(zero, "rb", buffering=0) as f:
572 f = self.open(support.TESTFN, "wb", buffering=0)
580 f = self.open(support.TESTFN, "wb", buffering=0)
908 with self.open(support.TESTFN, self.read_mode, buffering=0) as raw:
1185 with self.open(support.TESTFN, self.write_mode, buffering=0) as raw:
1190 with self.open(support.TESTFN, "rb", buffering=0) as f:
1214 with self.open(support.TESTFN, self.write_mode, buffering=0) as raw:
1702 For testing seek/tell behavior with a stateful, buffering decoder.
2402 with self.open(support.TESTFN, "w", buffering=1) as f:
2656 f = self.open(support.TESTFN, "wb", buffering=0)
2686 {"mode": "w", "buffering": 1},
2687 {"mode": "w", "buffering": 2},
2688 {"mode": "wb", "buffering": 0},
2691 {"mode": "r", "buffering": 1},
2692 {"mode": "r", "buffering": 2},
2693 {"mode": "rb", "buffering": 0},
2696 {"mode": "w+", "buffering": 1},
2697 {"mode": "w+", "buffering": 2},
2698 {"mode": "w+b", "buffering": 0},
2752 with self.open(support.TESTFN, "wb", buffering=0) as f:
2802 rf = self.open(r, mode='rb', closefd=True, buffering=bufsize)
2803 wf = self.open(w, mode='wb', closefd=True, buffering=bufsize)
2902 self.check_interrupted_write(b"xy", b"xy", mode="wb", buffering=0)