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
datetime.utcnow() seems to be deprecated in Python 3.12, which with -Werror leads to:
[...]
File ".../python3.12/site-packages/pytest_benchmark/plugin.py", line 213, in pytest_addoption
tag = get_tag()
^^^^^^^^^
File ".../python3.12/site-packages/pytest_benchmark/utils.py", line 75, in get_tag
parts = [info['id'], get_current_time()]
^^^^^^^^^^^^^^^^^^
File ".../python3.12/site-packages/pytest_benchmark/utils.py", line 201, in get_current_timereturn datetime.utcnow().strftime("%Y%m%d_%H%M%S")
^^^^^^^^^^^^^^^^^DeprecationWarning: datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.now(datetime.UTC).
The text was updated successfully, but these errors were encountered:
The-Compiler
added a commit
to qutebrowser/qutebrowser
that referenced
this issue
Jun 9, 2023
datetime.utcnow()
seems to be deprecated in Python 3.12, which with-Werror
leads to:The text was updated successfully, but these errors were encountered: