]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-154427: Check the access time in UtimeTests only if it is stored (GH-154428...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 22 Jul 2026 07:32:39 +0000 (09:32 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 07:32:39 +0000 (07:32 +0000)
commitd4e3529e66cf5d43b663d5416ed99c4ffb5429ff
treeb887f6e83b42063b55d3d6c0bc5013166f35953f
parent034408f41fcc482105dc67f030f2463199b44be9
[3.15] gh-154427: Check the access time in UtimeTests only if it is stored (GH-154428) (GH-154432)

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 6f8f97fe5246837b93e6c2f3525aa9f623ecd30b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Lib/test/test_os/test_os.py