Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Colin Watson
Tue, 10 Nov 2026 10:10
Bug#1153597: python-probatio: FTBFS with python3-hypothesis 6.170.15+ds-1
Author: Colin Watson
Date: Tue, 10 Nov 2026 10:10
Date: Tue, 10 Nov 2026 10:10
67 lines
4188 bytes
4188 bytes
Source: python-probatio
Version: 0.13.0-1
Severity: serious
Tags: ftbfs
https://tracker.debian.org/pkg/python-hypothesis shows that
python-probatio fails with the new hypothesis version, e.g.
https://ci.debian.net/packages/p/python-probatio/testing/amd64/77657957/.
This also causes a build failure for similar reasons, as follows:
=================================== FAILURES ===================================
___________________________ test_matches_voluptuous ____________________________
@given(spec=strategies.specs(), value=strategies.data())
> @settings(
max_examples=600, derandomize=True, suppress_health_check=[HealthCheck.too_slow]
)
tests/test_fuzz_engine.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spec = ('maybe', ('maybe', ('dict', {}, None, ('coerce_key', ('type', <class 'int'>)))))
value = {'1': None}
@given(spec=strategies.specs(), value=strategies.data())
@settings(
max_examples=600, derandomize=True, suppress_health_check=[HealthCheck.too_slow]
)
def test_matches_voluptuous(spec: Any, value: Any) -> None:
"""probatio and voluptuous agree on acceptance, result, and error paths.
The accept/reject decision and any normalized result must match exactly. On
rejection, probatio must report at least the paths voluptuous does; it is free
to report more (it collects every failing sequence element, where voluptuous
surfaces only the deepest one, a documented deviation).
"""
try:
expected = _result(spec, voluptuous, value)
except Exception: # noqa: BLE001
# voluptuous itself raised a non-Invalid error (it is less defensive than
# probatio in places); that is not a fair comparison point.
assume(False)
return
actual = _result(spec, probatio, value)
assert actual[0] == expected[0]
if expected[0] == "ok":
assert actual[1] == expected[1]
else:
> assert expected[1] <= actual[1]
E AssertionError: assert {('1',)} <= {(1,)}
E
E Extra items in the left set:
E ('1',)
E Failing test case: test_matches_voluptuous(
E # The test always failed when commented parts were varied together.
E spec=('maybe', ('maybe', ('dict', {}, None, ('coerce_key', ('type', int))))),
E value={'1': None},
E )
tests/test_fuzz_engine.py:69: AssertionError
Thanks,
--
Colin Watson (he/him) [cjwatson@debian.org]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads