Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0d0090 commit d3cf692Copy full SHA for d3cf692
2 files changed
Lib/test/output/test_mmap
22 Bytes
Lib/test/test_mmap.py
@@ -94,6 +94,19 @@ def test_both():
94
else:
95
assert 0, 'expected a ValueError but did not get it'
96
97
+ # Try resizing map
98
+ print ' Attempting resize()'
99
+ try:
100
+ m.resize( 512 )
101
+ except SystemError:
102
+ # resize() not supported
103
+ # No messages are printed, since the output of this test suite
104
+ # would then be different across platforms.
105
+ pass
106
+ else:
107
+ # resize() is supported
108
109
+
110
m.close()
111
os.unlink("foo")
112
print ' Test passed'
0 commit comments