commit | e2adb958056acda5c33fc18c4c57b118ee3138a9 | [log] [tgz] |
---|---|---|
author | Frost Ming <mianghong@gmail.com> | Thu Jul 27 12:07:56 2023 +0800 |
committer | GitHub <noreply@github.com> | Thu Jul 27 12:07:56 2023 +0800 |
tree | 3d2999b97259ed1f631b2e411868fb967885c66b | |
parent | e07f6a11d5272301682b6423b77be624bbab3cde [diff] |
fix: replace deprecated usage of datetime.utcnow (#308)
diff --git a/tests/test_items.py b/tests/test_items.py index 485e47f..783cab3 100644 --- a/tests/test_items.py +++ b/tests/test_items.py
@@ -6,6 +6,7 @@ from datetime import datetime from datetime import time from datetime import timedelta +from datetime import timezone import pytest @@ -103,7 +104,7 @@ def test_datetime_unwrap(): - dt = datetime.utcnow() + dt = datetime.now(tz=timezone.utc) elementary_test(item(dt), datetime)