Skip to content

Commit f37079b

Browse files
committed
tests: old python compat
1 parent 0b35454 commit f37079b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testcase.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import asyncio
2-
import datetime
2+
from datetime import datetime
33
from typing import Any
44
from unittest.mock import MagicMock
55

@@ -44,7 +44,7 @@ async def handler(msg: str) -> None:
4444
**{self.subj_name: subject},
4545
schedule=[
4646
{
47-
"time": datetime.datetime.now(datetime.UTC),
47+
"time": datetime.utcnow(), # old python compat
4848
},
4949
],
5050
)

0 commit comments

Comments
 (0)