mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-32941: Fix test_madvise failure when page size >= 8kiB (GH-13596)
https://bugs.python.org/issue32941
This commit is contained in:
parent
a8e814db96
commit
695b1dd8cb
1 changed files with 2 additions and 1 deletions
|
@ -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"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue