diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-03-11 09:57:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-11 09:57:07 (GMT) |
commit | d8712fa0c75ad5ea56543903fa45674ab47cc647 (patch) | |
tree | ea6b452a2341aa173ee077a41321c39cfd9f155d /Modules | |
parent | 4e5df2013fc29ed8bdb71572f1d12ff36e7028d5 (diff) | |
download | cpython-d8712fa0c75ad5ea56543903fa45674ab47cc647.zip cpython-d8712fa0c75ad5ea56543903fa45674ab47cc647.tar.gz cpython-d8712fa0c75ad5ea56543903fa45674ab47cc647.tar.bz2 |
gh-88352: Make TimedRotatingFileHandler tests more stable (GH-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.
Diffstat (limited to 'Modules')
0 files changed, 0 insertions, 0 deletions