summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-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 7b2b100..88c501d 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"):