]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-154260: Fix test_flush_parameters on DragonFly BSD (GH-154261) (GH-154269)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Jul 2026 18:22:59 +0000 (20:22 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 18:22:59 +0000 (18:22 +0000)
commitc6c1e9d7b42f3bbd0263a2f5bc18c8c318d1138e
tree6c4d341128369b439962dcaca6548e2281b086a2
parent84e0673706f3e4439dc1118c6f8a44009b5ca48a
[3.15] gh-154260: Fix test_flush_parameters on DragonFly BSD (GH-154261) (GH-154269)

DragonFly, like FreeBSD, rejects mmap.flush() with MS_ASYNC|MS_INVALIDATE
(EINVAL).  Use str.startswith() so the check also matches DragonFly, whose
sys.platform carries a version suffix.
(cherry picked from commit fc4d93dcf1a01f56fd8ffc35b6d3700c98ffa6c9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Lib/test/test_mmap.py