Skip to content

Commit 68b524f

Browse files
committed
bpo-24658: check with bigmemtest
1 parent 1916745 commit 68b524f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_largefile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def tearDownClass(cls):
4545
raise cls.failureException('File was not truncated by opening '
4646
'with mode "wb"')
4747

48-
def test_large_read(self):
48+
@bigmemtest(size=_2G, memuse=1)
49+
def test_large_read(self, _size):
4950
# bpo-24658: Test that a read greater than 2GB does not fail.
5051
with self.open(TESTFN, "rb") as f:
5152
self.assertEqual(len(f.read()), size + 1)

0 commit comments

Comments
 (0)