Skip to content

Commit

Permalink
test: Fix UTC assuming test (#3722)
Browse files Browse the repository at this point in the history
Fixes #3720.
  • Loading branch information
BYK authored Oct 31, 2024
1 parent ce9986c commit 5c5d98a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def _normalize_distribution_name(name):
), # UTC time
(
"2021-01-01T00:00:00.000000",
datetime(2021, 1, 1, tzinfo=timezone.utc),
), # No TZ -- assume UTC
datetime(2021, 1, 1).astimezone(timezone.utc),
), # No TZ -- assume local but convert to UTC
(
"2021-01-01T00:00:00Z",
datetime(2021, 1, 1, tzinfo=timezone.utc),
Expand Down

0 comments on commit 5c5d98a

Please sign in to comment.