Commit c113a581 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Add test of resize() method of mmap objects

parent f2c9afbe
......@@ -94,6 +94,19 @@ def test_both():
else:
assert 0, 'expected a ValueError but did not get it'
# Try resizing map
print ' Attempting resize()'
try:
m.resize( 512 )
except SystemError:
# resize() not supported
# No messages are printed, since the output of this test suite
# would then be different across platforms.
pass
else:
# resize() is supported
pass
m.close()
os.unlink("foo")
print ' Test passed'
......
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