Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Lib/test/test_mmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

PAGESIZE = mmap.PAGESIZE


class MmapTests(unittest.TestCase):

def setUp(self):
Expand Down Expand Up @@ -741,7 +742,7 @@ def test_flush_return_value(self):

@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"):
Expand Down