-
-
Couldn't load subscription status.
- Fork 43
Open
Description
Python Version
3.12.2
pytest Version
8.1.1
Package Version
2.14.1
Description
def test_utcnow_warning() -> None:
with time_machine.travel(0):
datetime.utcnow() # no warning
datetime.utcnow() # DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).tuukkamustonen
Metadata
Metadata
Assignees
Labels
No labels