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 5d48d65 commit 1706484Copy full SHA for 1706484
2 files changed
Lib/test/test_mmap.py
@@ -1171,7 +1171,7 @@ def test_flush_parameters(self):
1171
if hasattr(mmap, 'MS_ASYNC'):
1172
m.flush(flags=mmap.MS_ASYNC)
1173
if hasattr(mmap, 'MS_INVALIDATE'):
1174
- m.flush(PAGESIZE * 2, mmap.MS_INVALIDATE)
+ m.flush(PAGESIZE * 2, flags=mmap.MS_INVALIDATE)
1175
if hasattr(mmap, 'MS_ASYNC') and hasattr(mmap, 'MS_INVALIDATE'):
1176
m.flush(0, PAGESIZE, flags=mmap.MS_ASYNC | mmap.MS_INVALIDATE)
1177
@unittest.skipUnless(sys.platform == 'linux', 'Linux only')
Modules/mmapmodule.c
@@ -1034,6 +1034,7 @@ mmap.mmap.flush
1034
offset: Py_ssize_t = 0
1035
size: Py_ssize_t = -1
1036
/
1037
+ *
1038
flags: int = 0
1039
1040
[clinic start generated code]*/
0 commit comments