diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-03-11 10:49:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-11 10:49:30 (GMT) |
commit | 1ddd2f9036fd855f80fe9fe7ccafb9fc38c417f2 (patch) | |
tree | ae1cf2916ce1b8527471dc1f941081321295a2a8 /Lib/_pydatetime.py | |
parent | de239beaec886493468af3d0ae5ef1a0babbdde0 (diff) | |
download | cpython-1ddd2f9036fd855f80fe9fe7ccafb9fc38c417f2.zip cpython-1ddd2f9036fd855f80fe9fe7ccafb9fc38c417f2.tar.gz cpython-1ddd2f9036fd855f80fe9fe7ccafb9fc38c417f2.tar.bz2 |
[3.12] gh-88352: Make TimedRotatingFileHandler tests more stable (GH-116409) (GH-116585)
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 d8712fa0c75ad5ea56543903fa45674ab47cc647)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/_pydatetime.py')
0 files changed, 0 insertions, 0 deletions