]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154260: Fix test_flush_parameters on DragonFly BSD (GH-154261)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 20 Jul 2026 14:22:51 +0000 (17:22 +0300)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 14:22:51 +0000 (14:22 +0000)
commitfc4d93dcf1a01f56fd8ffc35b6d3700c98ffa6c9
treefc445d62f7bccc499fbdb9025bf643023de17244
parent4cde5cfd5bc53e964ff8b594ff47fe88e64df789
gh-154260: Fix test_flush_parameters on DragonFly BSD (GH-154261)

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.

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