Skip to content

[3.15] gh-154260: Fix test_flush_parameters on DragonFly BSD (GH-154261)#154269

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-fc4d93d-3.15
Jul 20, 2026
Merged

[3.15] gh-154260: Fix test_flush_parameters on DragonFly BSD (GH-154261)#154269
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-fc4d93d-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

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 fc4d93d)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Fable 5 noreply@anthropic.com

…-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.
(cherry picked from commit fc4d93dcf1a01f56fd8ffc35b6d3700c98ffa6c9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jul 20, 2026
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 20, 2026 14:28
@serhiy-storchaka
serhiy-storchaka merged commit c6c1e9d into python:3.15 Jul 20, 2026
96 of 98 checks passed
@miss-islington
miss-islington deleted the backport-fc4d93d-3.15 branch July 20, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants