Skip to content

Commit 1706484

Browse files
aiskvstinner
andauthored
Apply suggestions from code review
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 5d48d65 commit 1706484

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/test/test_mmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ def test_flush_parameters(self):
11711171
if hasattr(mmap, 'MS_ASYNC'):
11721172
m.flush(flags=mmap.MS_ASYNC)
11731173
if hasattr(mmap, 'MS_INVALIDATE'):
1174-
m.flush(PAGESIZE * 2, mmap.MS_INVALIDATE)
1174+
m.flush(PAGESIZE * 2, flags=mmap.MS_INVALIDATE)
11751175
if hasattr(mmap, 'MS_ASYNC') and hasattr(mmap, 'MS_INVALIDATE'):
11761176
m.flush(0, PAGESIZE, flags=mmap.MS_ASYNC | mmap.MS_INVALIDATE)
11771177
@unittest.skipUnless(sys.platform == 'linux', 'Linux only')

Modules/mmapmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,7 @@ mmap.mmap.flush
10341034
offset: Py_ssize_t = 0
10351035
size: Py_ssize_t = -1
10361036
/
1037+
*
10371038
flags: int = 0
10381039
10391040
[clinic start generated code]*/

0 commit comments

Comments
 (0)