Package: src:jsonpickle
Version: 3.0.0+dfsg1-1
Severity: important
Tags: sid trixie
User: [email protected]
Usertags: python3.12
jsonpickle's autopkg tests fail with Python 3.12:
[...]
365s === python3.12 ===
366s ============================= test session starts
==============================
366s platform linux -- Python 3.12.0+, pytest-7.4.3, pluggy-1.3.0
366s rootdir: /tmp/autopkgtest.9P89Q8/autopkgtest_tmp
366s collected 317 items / 1 deselected / 2 skipped / 316 selected
366s
366s tests/backend_test.py ..........ssssss
[ 5%]
366s tests/bson_test.py ......
[ 6%]
366s tests/collections_test.py ......
[ 8%]
366s tests/datetime_test.py ................
[ 13%]
366s tests/document_test.py .
[ 14%]
367s tests/feedparser_test.py .
[ 14%]
367s tests/handler_test.py ......
[ 16%]
367s tests/jsonpickle_test.py
.................................F............. [ 31%]
367s ..............................................................
[ 50%]
367s tests/numpy_test.py .....................
[ 57%]
367s tests/object_test.py
.................................................XX [ 73%]
367s X................
[ 79%]
367s tests/pandas_test.py ........................
[ 86%]
367s tests/sqlalchemy_test.py ...
[ 87%]
367s tests/stdlib_test.py ...
[ 88%]
367s tests/util_test.py ..................................
[ 99%]
367s tests/wizard_test.py ..
[100%]
367s
367s =================================== FAILURES
===================================
367s __________________ PicklingTestCase.test_thing_with_submodule
__________________
367s
367s self = <jsonpickle_test.PicklingTestCase
testMethod=test_thing_with_submodule>
367s
367s def test_thing_with_submodule(self):
367s > from distutils import sysconfig
367s E ModuleNotFoundError: No module named 'distutils'
367s
367s tests/jsonpickle_test.py:394: ModuleNotFoundError
367s =============================== warnings summary
===============================
367s ../../../usr/lib/python3/dist-packages/pytz/__init__.py:30
367s /usr/lib/python3/dist-packages/pytz/__init__.py:30:
SyntaxWarning: invalid escape sequence '\s'
367s match = re.match("^#\s*version\s*([0-9a-z]*)\s*$", line)
367s
367s ../../../usr/lib/python3/dist-packages/dateutil/tz/tz.py:37
367s /usr/lib/python3/dist-packages/dateutil/tz/tz.py:37:
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).
367s EPOCH = datetime.datetime.utcfromtimestamp(0)
367s
367s ../../../usr/lib/python3/dist-packages/sqlalchemy/sql/sqltypes.py:2061
367s /usr/lib/python3/dist-packages/sqlalchemy/sql/sqltypes.py:2061:
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).
367s epoch = dt.datetime.utcfromtimestamp(0)
367s
367s tests/sqlalchemy_test.py:20
367s
/tmp/autopkgtest.9P89Q8/autopkgtest_tmp/tests/sqlalchemy_test.py:20:
MovedIn20Warning: Deprecated API features detected! These feature(s) are
not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades
prior to updating applications, ensure requirements files are pinned to
"sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show
all deprecation warnings. Set environment variable
SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background
on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
367s Base = declarative.declarative_base()
367s
367s tests/bson_test.py::BSONTestCase::test_FixedOffsetSerializable
367s /usr/lib/python3/dist-packages/bson/__init__.py:116:
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).
367s EPOCH_NAIVE = datetime.datetime.utcfromtimestamp(0)
367s
367s tests/datetime_test.py: 12 warnings
367s
/tmp/autopkgtest.9P89Q8/autopkgtest_tmp/tests/datetime_test.py:44:
DeprecationWarning: datetime.datetime.utcnow() is deprecated and
scheduled for removal in a future version. Use timezone-aware objects to
represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
367s self._dt_read = datetime.datetime.utcnow()
367s
367s
tests/datetime_test.py::DateTimeInnerReferenceTestCase::test_object_with_inner_datetime_refs
367s
tests/datetime_test.py::DateTimeInnerReferenceTestCase::test_object_with_inner_datetime_refs
367s
/tmp/autopkgtest.9P89Q8/autopkgtest_tmp/tests/datetime_test.py:54:
DeprecationWarning: datetime.datetime.utcnow() is deprecated and
scheduled for removal in a future version. Use timezone-aware objects to
represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
367s self._dt_read = datetime.datetime.utcnow()
367s
367s tests/datetime_test.py::DateTimeSimpleTestCase::test_utc
367s
/tmp/autopkgtest.9P89Q8/autopkgtest_tmp/tests/datetime_test.py:152:
DeprecationWarning: datetime.datetime.utcnow() is deprecated and
scheduled for removal in a future version. Use timezone-aware objects to
represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
367s self._roundtrip(datetime.datetime.utcnow().replace(tzinfo=utc))
367s
367s tests/feedparser_test.py::FeedParserTestCase::test
367s /usr/lib/python3/dist-packages/feedparser/encodings.py:29:
DeprecationWarning: 'cgi' is deprecated and slated for removal in Python
3.13
367s import cgi
367s
367s tests/numpy_test.py::test_ndarray_roundtrip
367s /usr/lib/python3/dist-packages/jsonpickle/ext/numpy.py:307:
UserWarning: ndarray is defined by reference to an object we do not know
how to serialize. A deep copy is serialized instead, breaking memory
aliasing.
367s warnings.warn(msg)
367s
367s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
367s =========================== short test summary info
============================
367s FAILED
tests/jsonpickle_test.py::PicklingTestCase::test_thing_with_submodule
367s = 1 failed, 306 passed, 8 skipped, 1 deselected, 3 xpassed, 22
warnings in 1.35s =