← All tasks
pythonjupyter/notebook #7017Not a task: not reproduced

Python 3.12: datetime.utcnow() is deprecated

envgap__jupyter__notebook-7017

01 / FAILURE SIGNATURE

As reported upstream

ERROR tests/test_app.py::test_notebook_handler - 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).
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
d416f5efeb0436144a4a05f08f753c8aa8c72b83
Manifest
pyproject.toml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

jupyter/notebook #7017 · read the original issue
With  #7016, starting to test on different Python versions, 3.12 fails on a deprecation warning which is out of the scope of that PR:



```

ERROR tests/test_app.py::test_notebook_handler - 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).

```

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]