reassign 1088771 python3-ipykernel retitle 1088771 python3-ipykernel: DeprecationWarning: Parsing dates involving a day of month without a year specified is ambiguious tags 1088771 + fixed-upstream patch thanks
On Sat, Nov 30, 2024 at 06:37:40PM +0000, Graham Inggs wrote: > Source: pytest-jupyter > Version: 0.10.1-2 > Severity: serious > User: [email protected] > Usertags: python3.13 > > Hi Maintainer > > The autopkgtests of this package fail with Python 3.13 [1]. I've > copied what I hope is the relevant part of the log below. > > Regards > Graham > > > [1] https://ci.debian.net/packages/p/pytest-jupyter/testing/amd64/ > > > 74s [36m [1m=========================== short test summary info > ============================ [0m > 74s [31mERROR [0m tests/test_jupyter_client.py - DeprecationWarning: > Parsing dates involving a day of month without a year specified is > ambiguious > 74s and fails to parse leap day. The default behavior will change in Python > 3.15 > 74s to either always raise an exception or to use a different default > year (TBD). > 74s To avoid trouble, add a specific year to the input & format. > 74s See https://github.com/python/cpython/issues/70647. > 74s [31mERROR [0m tests/test_jupyter_client.py - DeprecationWarning: > Parsing dates involving a day of month without a year specified is > ambiguious > 74s and fails to parse leap day. The default behavior will change in Python > 3.15 > 74s to either always raise an exception or to use a different default > year (TBD). > 74s To avoid trouble, add a specific year to the input & format. > 74s See https://github.com/python/cpython/issues/70647. > 74s !!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection > !!!!!!!!!!!!!!!!!!!! The source of this bug is that the pytest configuration for pytest-jupyter regards warnings as errors, and ipykernel has the following line in /usr/lib/python3/dist-packages/ipykernel/jsonutil.py (line 29): datetime.strptime("1", "%d") This raises a DeprecationWarning in Python 3.13. In the current GitHub, this line is replaced by: datetime.strptime("2000-01-01", "%Y-%m-%d") This change should fix this bug. Thanks, Julian

