Package: src:python-fakeredis
Version: 1.4.4-1
Severity: serious
Tags: sid bullseye
python-fakeredis' autopkg tests fail:
[...]
=================================== FAILURES ===================================
________________________________ TestFuzz.test _________________________________
self = <test_hypothesis.TestFuzz object at 0x7fa75b6e7a90>
@pytest.mark.slow
def test(self):
class Machine(CommonMachine):
create_command_strategy = self.create_command_strategy
command_strategy = self.command_strategy
> hypothesis.stateful.run_state_machine_as_test(Machine)
test/test_hypothesis.py:468:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/hypothesis/stateful.py:75: in
run_state_machine_as_test
def run_state_machine_as_test(state_machine_factory, *, settings=None):
/usr/lib/python3/dist-packages/hypothesis/internal/reflection.py:654: in accept
return func(*bound.args, **bound.kwargs)
/usr/lib/python3/dist-packages/hypothesis/stateful.py:200: in
run_state_machine_as_test
run_state_machine(state_machine_factory)
/usr/lib/python3/dist-packages/hypothesis/stateful.py:92: in run_state_machine
@given(st.data())
test/test_hypothesis.py:454: in one_command
self._compare(command)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = Machine({}), command = Command('exec', b'')
def _compare(self, command):
fake_result, fake_exc = self._evaluate(self.fake, command)
real_result, real_exc = self._evaluate(self.real, command)
if fake_exc is not None and real_exc is None:
raise fake_exc
elif real_exc is not None and fake_exc is None:
assert real_exc == fake_exc, "Expected exception {} not
raised".format(real_exc)
elif (real_exc is None and isinstance(real_result, list)
and command.args and command.args[0].lower() == 'exec'):
assert fake_result is not None
# Transactions need to use the normalize functions of the
# component commands.
assert len(self.transaction_normalize) == len(real_result)
assert len(self.transaction_normalize) == len(fake_result)
for n, r, f in zip(self.transaction_normalize, real_result,
fake_result):
assert n(f) == n(r)
self.transaction_normalize = []
else:
> assert fake_result == real_result
E assert WrappedExcept...ec' command")) == WrappedExcepti...ec'
command"))
E -WrappedException(ResponseError("wrong number of arguments for
'exec' command"))
E +WrappedException(ExecAbortError("Transaction discarded because
of: wrong number of arguments for 'exec' command"))
test/test_hypothesis.py:424: AssertionError
----------------------------- Captured stdout call -----------------------------
Falsifying example:
state = Machine()
state.init_attrs(attrs={'fields': [b'', b'\x00'],
'keys': [b'', b'\x00'],
'scores': [0.0, 1.0],
'values': [b'', b'\x00']})
state.init_data(commands=[])
state.one_command(command=Command('exec', b''))
state.teardown()
============= 1 failed, 1086 passed, 88 skipped in 264.91 seconds ==============
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:9:
DeprecationWarning: the imp module is deprecated in favour of importlib; see the
module's documentation for alternative uses
import imp
autopkgtest [18:34:51]: test command1: -----------------------]
autopkgtest [18:34:51]: test command1: - - - - - - - - - - results - - - - - -
- - - -
command1 FAIL non-zero exit status 1