Content-Length: 241398 | pFad | https://github.com/python/cpython/pull/116586

E5 [3.11] gh-88352: Make TimedRotatingFileHandler tests more stable (GH-116409) by miss-islington · Pull Request #116586 · python/cpython · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Mar 11, 2024

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 miss-islington requested a review from vsajip as a code owner March 11, 2024 09:57
@bedevere-app bedevere-app bot added the tests Tests in the Lib/test dir label Mar 11, 2024
@serhiy-storchaka serhiy-storchaka merged commit 707ce1f into python:3.11 Mar 11, 2024
23 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.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/116586

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy