Package: src;bidict
Version: 0.22.1-1
Severity: important
Tags: sid trixie
User: [email protected]
Usertags: python3.12
bidict's autopkg tests fail with Python 3.12:
[...]
368s [*] testing python3.12:
370s ============================= test session starts
==============================
370s platform linux -- Python 3.12.0+, pytest-7.4.3, pluggy-1.3.0
370s benchmark: 4.0.0 (defaults: timer=time.perf_counter
disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0
calibration_precision=10 warmup=False warmup_iterations=100000)
370s rootdir: /tmp/autopkgtest.PSsKn3/autopkgtest_tmp
370s plugins: hypothesis-6.88.4, benchmark-4.0.0, xdist-3.4.0
370s collected 147 items
370s
370s tests/test_bidict.txt .
[ 0%]
370s tests/test_class_relationships.py
..............................F...... [ 25%]
370s tests/test_metadata.py .
[ 26%]
371s tests/test_microbenchmarks.py
.......................................... [ 55%]
371s ........................
[ 71%]
371s tests/test_namedbidict.txt .
[ 72%]
371s tests/test_orderedbidict.txt .
[ 72%]
408s tests/property_tests/test_properties.py
................................ [ 94%]
414s ........
[100%]
414s
414s =================================== FAILURES
===================================
414s ________________________ test_abstract_bimap_init_fails
________________________
414s
414s def test_abstract_bimap_init_fails() -> None:
414s """Instantiating `AbstractBimap` should fail with expected
TypeError."""
414s excmatch = r"Can't instantiate abstract class AbstractBimap
with abstract methods .* inverse"
414s with pytest.raises(TypeError, match=excmatch):
414s > AbstractBimap() # type: ignore
414s E TypeError: Can't instantiate abstract class
AbstractBimap without an implementation for abstract methods
'__getitem__', '__iter__', '__len__', 'inverse'
414s
414s tests/test_class_relationships.py:128: TypeError
414s
414s During handling of the above exception, another exception occurred:
414s
414s def test_abstract_bimap_init_fails() -> None:
414s """Instantiating `AbstractBimap` should fail with expected
TypeError."""
414s excmatch = r"Can't instantiate abstract class AbstractBimap
with abstract methods .* inverse"
414s > with pytest.raises(TypeError, match=excmatch):
414s E AssertionError: Regex pattern did not match.
414s E Regex: "Can't instantiate abstract class AbstractBimap
with abstract methods .* inverse"
414s E Input: "Can't instantiate abstract class AbstractBimap
without an implementation for abstract methods '__getitem__',
'__iter__', '__len__', 'inverse'"
414s
414s tests/test_class_relationships.py:127: AssertionError
414s =========================== short test summary info
============================
414s FAILED
tests/test_class_relationships.py::test_abstract_bimap_init_fails - As...
414s ======================== 1 failed, 146 passed in 45.42s
========================