]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-84649: Fix unstable test_rollover_at_midnight (GH-151813)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 20 Jun 2026 22:26:53 +0000 (01:26 +0300)
committerGitHub <noreply@github.com>
Sat, 20 Jun 2026 22:26:53 +0000 (01:26 +0300)
commit1b9fe5c7226eccc8b269a7443148033080399f43
treee750b27c195624413b77c423d3f52c9f59256c0e
parentaec0aed197872adf96d3f25fd5ea624508fcddbf
gh-84649: Fix unstable test_rollover_at_midnight (GH-151813)

The test forced a rollover by back-dating the file modification time, but
the rollover time is now based also on the creation time, which cannot be
changed.  Instead, set the rollover time one second after the file
creation time and wait until the clock reaches it.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/test/test_logging.py