summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_mmap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py
index 7b2b100dce..88c501d81a 100644
--- a/Lib/test/test_mmap.py
+++ b/Lib/test/test_mmap.py
@@ -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"):