Skip to content

Commit 5c5d98a

Browse files
authored
test: Fix UTC assuming test (#3722)
Fixes #3720.
1 parent ce9986c commit 5c5d98a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def _normalize_distribution_name(name):
6969
), # UTC time
7070
(
7171
"2021-01-01T00:00:00.000000",
72-
datetime(2021, 1, 1, tzinfo=timezone.utc),
73-
), # No TZ -- assume UTC
72+
datetime(2021, 1, 1).astimezone(timezone.utc),
73+
), # No TZ -- assume local but convert to UTC
7474
(
7575
"2021-01-01T00:00:00Z",
7676
datetime(2021, 1, 1, tzinfo=timezone.utc),

0 commit comments

Comments
 (0)