Skip to content

Commit 3634efb

Browse files
committed
Fix doctest
1 parent 8ffbbb4 commit 3634efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asserts/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ def assert_datetime_about_now(actual, msg_fmt="{msg}"):
845845
def assert_datetime_about_now_utc(actual, msg_fmt="{msg}"):
846846
"""Fail if a datetime object is not within 5 seconds of UTC.
847847
848-
>>> assert_datetime_about_now_utc(datetime.now(datetime.UTC))
848+
>>> assert_datetime_about_now_utc(datetime.now(timezone.utc).replace(tzinfo=None))
849849
>>> assert_datetime_about_now_utc(datetime(1900, 1, 1, 12, 0, 0))
850850
Traceback (most recent call last):
851851
...

0 commit comments

Comments
 (0)