Skip to content

Commit

Permalink
tests: old python compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Aug 21, 2024
1 parent 0b35454 commit f37079b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testcase.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import asyncio
import datetime
from datetime import datetime
from typing import Any
from unittest.mock import MagicMock

Expand Down Expand Up @@ -44,7 +44,7 @@ async def handler(msg: str) -> None:
**{self.subj_name: subject},
schedule=[
{
"time": datetime.datetime.now(datetime.UTC),
"time": datetime.utcnow(), # old python compat
},
],
)
Expand Down

0 comments on commit f37079b

Please sign in to comment.