[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1056456: python-apt's autopkg tests fail with Python 3.12



Package: src:python-apt
Version: 2.6.0
Severity: important
Tags: sid trixie
User: debian-python@lists.debian.org
Usertags: python3.12

python-apt's autopkg tests fail with Python 3.12:

[...]
428s autopkgtest [18:39:58]: test run-tests: -----------------------]
428s autopkgtest [18:39:58]: test run-tests: - - - - - - - - - - results - - - - - - - - - - 428s run-tests FAIL stderr: /tmp/autopkgtest.pdaN90/build.FWH/src/tests/test_utils.py:26: 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). 428s autopkgtest [18:39:58]: test run-tests: - - - - - - - - - - stderr - - - - - - - - - - 428s /tmp/autopkgtest.pdaN90/build.FWH/src/tests/test_utils.py:26: 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).
428s   str(datetime.datetime.utcfromtimestamp(t)), "2012-04-25 22:49:23"
428s autopkgtest [18:39:58]: @@@@@@@@@@@@@@@@@@@@ summary
428s run-tests FAIL stderr: /tmp/autopkgtest.pdaN90/build.FWH/src/tests/test_utils.py:26: 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).


Reply to: