summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-10-06 05:00:05 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-10-06 05:00:05 (GMT)
commite06cc67c1938fa4786aa3f5cd8bb2e7fd65754cf (patch)
tree53263e6dd7c3a353fa86a76f0ac08706aaead200 /Lib/test
parentcd04db03debaead0abd1bff149389445284f88e2 (diff)
downloadcpython-e06cc67c1938fa4786aa3f5cd8bb2e7fd65754cf.zip
cpython-e06cc67c1938fa4786aa3f5cd8bb2e7fd65754cf.tar.gz
cpython-e06cc67c1938fa4786aa3f5cd8bb2e7fd65754cf.tar.bz2
skip test if resizing is not supported
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_mmap.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py
index f8de8c2..b8a0135 100644
--- a/Lib/test/test_mmap.py
+++ b/Lib/test/test_mmap.py
@@ -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)