Skip to content

tests: add utc=False tests for TimedRotatingFileHandler#148642

Open
StepfenShawn wants to merge 1 commit intopython:mainfrom
StepfenShawn:add-missing-tests
Open

tests: add utc=False tests for TimedRotatingFileHandler#148642
StepfenShawn wants to merge 1 commit intopython:mainfrom
StepfenShawn:add-missing-tests

Conversation

@StepfenShawn
Copy link
Copy Markdown
Contributor

The original tests only covered utc=True case. The TODO comments indicated these tests were missing. This ensures correct behavior when users configure the handler to use local timezone instead of UTC.

Added test coverage for the utc=False parameter in:

  • test_compute_rollover_daily_attime
  • test_compute_rollover_weekly_attime

These tests verify rollover time calculation works correctly when
using local time (utc=False) instead of UTC.

Added tests for utc=False in TimedRotatingFileHandler.
@StepfenShawn StepfenShawn requested a review from vsajip as a code owner April 16, 2026 06:50
@bedevere-app bedevere-app bot added awaiting review tests Tests in the Lib/test dir labels Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant