[Python-checkins] cpython (3.5): skip test if resizing is not supported
benjamin.peterson
python-checkins at python.org
Thu Oct 6 01:54:37 EDT 2016
https://hg.python.org/cpython/rev/a2c0a2a41a3a
changeset: 104322:a2c0a2a41a3a
branch: 3.5
user: Benjamin Peterson <benjamin at python.org>
date: Wed Oct 05 22:00:05 2016 -0700
summary:
skip test if resizing is not supported
files:
Lib/test/test_mmap.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py
--- a/Lib/test/test_mmap.py
+++ b/Lib/test/test_mmap.py
@@ -717,7 +717,10 @@
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)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list