You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImportError while loading conftest '/Users/runner/work/truststore/truststore/tests/conftest.py'.
tests/conftest.py:11: in <module>
from aiohttp import web
.nox/test/lib/python3.12/site-packages/aiohttp/__init__.py:6: in <module>
from .client import (
.nox/test/lib/python3.12/site-packages/aiohttp/client.py:73: in <module>
from .cookiejar import CookieJar
.nox/test/lib/python3.12/site-packages/aiohttp/cookiejar.py:36: in <module>
classCookieJar(AbstractCookieJar):
.nox/test/lib/python3.12/site-packages/aiohttp/cookiejar.py:57: in CookieJar
MAX_32BIT_TIME= datetime.datetime.utcfromtimestamp(2**31-1)
E DeprecationWarning: datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.fromtimestamp(timestamp, datetime.UTC).
Describe the bug
Receiving the following deprecation when using the latest pre-release of Python 3.12. See: https://docs.python.org/3.12/library/datetime.html#datetime.datetime.utcfromtimestamp
To Reproduce
Import aiohttp on Python 3.12
Expected behavior
No DeprecationWarning
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
yarl Version
OS
Ubuntu 22.04
Related component
Server, Client
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: