Thanks to visit codestin.com Credit goes to github.com
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 a8e814d commit 695b1ddCopy full SHA for 695b1dd
1 file changed
Lib/test/test_mmap.py
@@ -13,6 +13,7 @@
13
14
PAGESIZE = mmap.PAGESIZE
15
16
+
17
class MmapTests(unittest.TestCase):
18
19
def setUp(self):
@@ -741,7 +742,7 @@ def test_flush_return_value(self):
741
742
743
@unittest.skipUnless(hasattr(mmap.mmap, 'madvise'), 'needs madvise')
744
def test_madvise(self):
- size = 8192
745
+ size = 2 * PAGESIZE
746
m = mmap.mmap(-1, size)
747
748
with self.assertRaisesRegex(ValueError, "madvise start out of bounds"):
0 commit comments