Skip to content

Commit 16acaa4

Browse files
authored
Update test_resource.py
1 parent befd67a commit 16acaa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_fsize_enforced(self):
5555
self.skipTest(f"getrlimit(RLIMIT_FSIZE) failed: {e}")
5656
if max_lim != resource.RLIM_INFINITY and max_lim < 1025:
5757
self.skipTest(f"system RLIMIT_FSIZE hard limit ({max_lim}) is too small for this test")
58-
with open(os_helper.TESTFN, "wb") as f:
58+
with open(os_helper.TESTFN, "wb", buffering=0) as f:
5959
try:
6060
resource.setrlimit(resource.RLIMIT_FSIZE, (1024, max_lim))
6161
f.write(b"X" * 1024)

0 commit comments

Comments
 (0)