diff options
| author | Benjamin Peterson <benjamin@python.org> | 2016-10-05 22:00:05 -0700 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2016-10-05 22:00:05 -0700 |
| commit | e06cc67c1938fa4786aa3f5cd8bb2e7fd65754cf (patch) | |
| tree | 53263e6dd7c3a353fa86a76f0ac08706aaead200 /Lib/test/test_mmap.py | |
| parent | cd04db03debaead0abd1bff149389445284f88e2 (diff) | |
| download | cpython-git-e06cc67c1938fa4786aa3f5cd8bb2e7fd65754cf.tar.gz | |
skip test if resizing is not supported
Diffstat (limited to 'Lib/test/test_mmap.py')
| -rw-r--r-- | 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 index f8de8c2e63..b8a0135043 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) |
