Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cap the block size to 8 MB.
  • Loading branch information
rmmancom committed Feb 6, 2025
commit 07be8afd18a03c8bac1181895c8914ae2b01fec8
2 changes: 1 addition & 1 deletion Lib/test/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def testDefaultBufferSize(self):

with self.open(TESTFN, 'rb') as f:
data = f.read1()
expected_size = max(blksize, io.DEFAULT_BUFFER_SIZE)
expected_size = max(min(blksize, 8192 * 1024), io.DEFAULT_BUFFER_SIZE)
self.assertEqual(len(data), expected_size)

def testTruncateOnWindows(self):
Expand Down