FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.12] gh-88352: Make TimedRotatingFileHandler tests more stable (GH-116409) by miss-islington · Pull Request #116585 · python/cpython · GitHub

Repository navigation

[3.12] gh-88352: Make TimedRotatingFileHandler tests more stable (GH-116409) - #116585

Merged
serhiy-storchaka merged 1 commit into
python:3.12from
miss-islington:backport-d8712fa-3.12
Mar 11, 2024
Merged

serhiy-storchaka merged 1 commit into
python:3.12from
miss-islington:backport-d8712fa-3.12

Conversation

miss-islington commented Mar 11, 2024 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

The tests failed (with less than 1% probability) if for example the file
was created at 11:46:03.999, but the record was emitted at 11:46:04.001,
with atTime=11:46:04, which caused an unexpected rollover. Ensure that the
tests are always run within the range of the same whole second.

Also share code between test_rollover_at_midnight and test_rollover_at_weekday.
(cherry picked from commit d8712fa)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…onGH-116409)

The tests failed (with less than 1% probability) if for example the file
was created at 11:46:03.999, but the record was emitted at 11:46:04.001,
with atTime=11:46:04, which caused an unexpected rollover. Ensure that the
tests are always run within the range of the same whole second.

Also share code between test_rollover_at_midnight and test_rollover_at_weekday.
(cherry picked from commit d8712fa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington requested a review from vsajip as a code owner March 11, 2024 09:57
bedevere-app Bot added the tests Tests in the Lib/test dir label Mar 11, 2024
serhiy-storchaka merged commit 1ddd2f9 into python:3.12 Mar 11, 2024
miss-islington deleted the backport-d8712fa-3.12 branch January 2, 2026 18:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL