Skip to content

Commit 6faed32

Browse files
Shrey-Nencukou
andauthored
Update Lib/test/test_resource.py based on suggestion
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 1808a8a commit 6faed32

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_resource.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def test_fsize_enforced(self):
6262
f.write(b"X" * 1024)
6363
with self.assertRaises(OSError, msg="f.write() did not raise OSError when exceeding RLIMIT_FSIZE"):
6464
f.write(b"Y")
65+
f.flush()
6566
finally:
6667
# Close will attempt to flush the byte we wrote
6768
# Restore limit first to avoid getting a spurious error

0 commit comments

Comments
 (0)