We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b35454 commit f37079bCopy full SHA for f37079b
tests/testcase.py
@@ -1,5 +1,5 @@
1
import asyncio
2
-import datetime
+from datetime import datetime
3
from typing import Any
4
from unittest.mock import MagicMock
5
@@ -44,7 +44,7 @@ async def handler(msg: str) -> None:
44
**{self.subj_name: subject},
45
schedule=[
46
{
47
- "time": datetime.datetime.now(datetime.UTC),
+ "time": datetime.utcnow(), # old python compat
48
},
49
],
50
)
0 commit comments