Commit e06cc67c authored by Benjamin Peterson's avatar Benjamin Peterson

skip test if resizing is not supported

parent cd04db03
......@@ -717,7 +717,10 @@ class MmapTests(unittest.TestCase):
m = mmap.mmap(-1, 8192)
self.addCleanup(m.close)
m.read(5000)
m.resize(4096)
try:
m.resize(4096)
except SystemError:
self.skipTest("resizing not supported")
self.assertEqual(m.read(14), b'')
self.assertRaises(ValueError, m.read_byte,)
self.assertRaises(ValueError, m.write_byte, 42)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment