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 9bc89f2 commit 356a68dCopy full SHA for 356a68d
Lib/test/test_os.py
@@ -123,14 +123,15 @@ def test_read(self):
123
self.assertEqual(type(s), bytes)
124
self.assertEqual(s, b"spam")
125
126
- def test_large_read(self):
+ @support.cpython_only
127
+ @support.bigmemtest(size=INT_MAX + 10, memuse=1, dry_run=False)
128
+ def test_large_read(self, size):
129
with open(support.TESTFN, "wb") as fp:
130
fp.write(b'test')
131
self.addCleanup(support.unlink, support.TESTFN)
132
133
# Issue #21932: Make sure that os.read() does not raise an
134
# OverflowError for size larger than INT_MAX
- size = INT_MAX + 10
135
with open(support.TESTFN, "rb") as fp:
136
data = os.read(fp.fileno(), size)
137
0 commit comments