Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c113a581
Commit
c113a581
authored
Jul 11, 2000
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test of resize() method of mmap objects
parent
f2c9afbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
Lib/test/output/test_mmap
Lib/test/output/test_mmap
+0
-0
Lib/test/test_mmap.py
Lib/test/test_mmap.py
+13
-0
No files found.
Lib/test/output/test_mmap
View file @
c113a581
No preview for this file type
Lib/test/test_mmap.py
View file @
c113a581
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment