Skip to content

[3.13] gh-154427: Check the access time in UtimeTests only if it is stored (GH-154428)#154439

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-6f8f97f-3.13
Jul 22, 2026
Merged

[3.13] gh-154427: Check the access time in UtimeTests only if it is stored (GH-154428)#154439
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-6f8f97f-3.13

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 22, 2026

Copy link
Copy Markdown
Member

HAMMER2 on DragonFly BSD does not store the access time and os.stat() returns the modification time instead.

Manual backport of GH-154428: in 3.13 the tests live in Lib/test/test_os.py and _test_utime() has no Emscripten branch, so the assertions are guarded in their 3.13 form.

…t is stored (pythonGH-154428)

HAMMER2 on DragonFly BSD does not store the access time and os.stat()
returns the modification time instead.  Probe the file system, like it
is already done for the timestamp resolution.
(cherry picked from commit 6f8f97f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jul 22, 2026
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 22, 2026 07:38
@serhiy-storchaka
serhiy-storchaka merged commit d1466cc into python:3.13 Jul 22, 2026
42 checks passed
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.

1 participant