Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix DeprecationWarning with newer Python versions
Using pytest-logger 1.1.0 with Python 3.12 results in the following DeprecationWarning: /Users/xxx/.venv/lib/python3.12/site-packages/pytest_logger/plugin.py:310: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). dt = datetime.datetime.utcfromtimestamp(ct)
- Loading branch information