Skip to content

Commit

Permalink
fix: replace deprecated usage of datetime.utcnow (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming authored Jul 27, 2023
1 parent e07f6a1 commit e2adb95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from datetime import datetime
from datetime import time
from datetime import timedelta
from datetime import timezone

import pytest

Expand Down Expand Up @@ -103,7 +104,7 @@ def test_true_unwrap():


def test_datetime_unwrap():
dt = datetime.utcnow()
dt = datetime.now(tz=timezone.utc)
elementary_test(item(dt), datetime)


Expand Down

0 comments on commit e2adb95

Please sign in to comment.