Skip to content

gh-102184: Test os.sync() only if the "walltime" resource is enabled - #155448

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-102184-sync-walltime
Open

gh-102184: Test os.sync() only if the "walltime" resource is enabled#155448
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-102184-sync-walltime

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 9, 2026

Copy link
Copy Markdown
Member

sync() was called unconditionally in testNoArgFunctions(), so a plain make test flushed every filesystem buffer on the machine. It is now a separate test gated on walltime, the resource for tests that are slow by the clock -- largefile, as proposed in #102185, and cpu describe the wrong cost.

…abled

Calling sync() flushes all filesystem buffers and can block for a long
time, so it should not run in the default test suite.

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant