Commit 695b1dd8 authored by Antoine Pitrou's avatar Antoine Pitrou Committed by Miss Islington (bot)

bpo-32941: Fix test_madvise failure when page size >= 8kiB (GH-13596)



https://bugs.python.org/issue32941
parent a8e814db
......@@ -13,6 +13,7 @@ mmap = import_module('mmap')
PAGESIZE = mmap.PAGESIZE
class MmapTests(unittest.TestCase):
def setUp(self):
......@@ -741,7 +742,7 @@ class MmapTests(unittest.TestCase):
@unittest.skipUnless(hasattr(mmap.mmap, 'madvise'), 'needs madvise')
def test_madvise(self):
size = 8192
size = 2 * PAGESIZE
m = mmap.mmap(-1, size)
with self.assertRaisesRegex(ValueError, "madvise start out of bounds"):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment