We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent befd67a commit 16acaa4Copy full SHA for 16acaa4
Lib/test/test_resource.py
@@ -55,7 +55,7 @@ def test_fsize_enforced(self):
55
self.skipTest(f"getrlimit(RLIMIT_FSIZE) failed: {e}")
56
if max_lim != resource.RLIM_INFINITY and max_lim < 1025:
57
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:
+ with open(os_helper.TESTFN, "wb", buffering=0) as f:
59
try:
60
resource.setrlimit(resource.RLIMIT_FSIZE, (1024, max_lim))
61
f.write(b"X" * 1024)
0 commit comments