Package: src:python-urllib3
Version: 1.26.18-1
Severity: important
Tags: sid trixie
User: [email protected]
Usertags: python3.12
python-urllib3's autopkg tests fail with Python 3.12:
[...]
188s =================================== FAILURES
===================================
188s _________________ TestImportWithoutSSL.test_cannot_import_ssl
__________________
188s
188s self = <test.test_no_ssl.TestImportWithoutSSL object at 0x7fa255452db0>
188s
188s def test_cannot_import_ssl(self):
188s > with pytest.raises(ImportError):
188s E Failed: DID NOT RAISE <class 'ImportError'>
188s
188s test/test_no_ssl.py:83: Failed
188s =============================== warnings summary
===============================
188s test/__init__.py:25
188s /tmp/autopkgtest.cXvT30/autopkgtest_tmp/test/__init__.py:25:
DeprecationWarning: 'urllib3.contrib.pyopenssl' module is deprecated and
will be removed in a future release of urllib3 2.x. Read more in this
issue: https://github.com/urllib3/urllib3/issues/2680
188s import urllib3.contrib.pyopenssl as pyopenssl
188s
188s test/test_retry.py:323
188s /tmp/autopkgtest.cXvT30/autopkgtest_tmp/test/test_retry.py:323:
PytestUnknownMarkWarning: Unknown pytest.mark.freeze_time - is this a
typo? You can register custom marks to avoid this warning - for
details, see https://docs.pytest.org/en/stable/how-to/mark.html
188s @pytest.mark.freeze_time("2019-06-03 11:00:00", tz_offset=0)
188s
188s test/test_retry_deprecated.py:325
188s
/tmp/autopkgtest.cXvT30/autopkgtest_tmp/test/test_retry_deprecated.py:325:
PytestUnknownMarkWarning: Unknown pytest.mark.freeze_time - is this a
typo? You can register custom marks to avoid this warning - for
details, see https://docs.pytest.org/en/stable/how-to/mark.html
188s @pytest.mark.freeze_time("2019-06-03 11:00:00", tz_offset=0)
188s
188s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
188s =========================== short test summary info
============================
188s FAILED
test/test_no_ssl.py::TestImportWithoutSSL::test_cannot_import_ssl - Fa...
188s ===== 1 failed, 557 passed, 5 skipped, 55 deselected, 3 warnings in
7.70s ======