Skip to content

Commit 356e477

Browse files
committed
bpo-24658: Add the bigmemtest decorator for the test
1 parent 666b69d commit 356e477

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_reads_writes(self):
48+
@bigmemtest(size=_2G, memuse=1)
49+
def test_large_reads_writes(self, _size):
4950
# see issue #24658
5051
requires('largefile',
5152
'test requires %s bytes and a long time to run' % size)

0 commit comments

Comments
 (0)