Source: borgmatic
Version: 1.5.1-1
Severity: important
User: pyt...@packages.debian.org
Usertags: pytest-v6
Hi,
borgmatic FTBFS with pytest 6 in unstable. Please consult the
deprecations and removals page for possible hints as to why it fails:
https://docs.pytest.org/en/stable/deprecations.html
The error log below has more details.
> I: pybuild base:232: cd /<>/.pybuild/cpython3_3.9/build;
> python3.9 -m pytest --ignore=tests/end-to-end --ignore=tests/integration
> = test session starts
> ==
> platform linux -- Python 3.9.1, pytest-6.0.2, py-1.9.0, pluggy-0.13.0
> rootdir: /<>, configfile: setup.cfg
> collected 487 items
>
> tests/unit/test_execute.py ... [
> 3%]
> tests/unit/test_logger.py .. [
> 11%]
> tests/unit/test_verbosity.py .. [
> 12%]
> tests/unit/borg/test_check.py .. [
> 19%]
> tests/unit/borg/test_create.py . [
> 28%]
> .[
> 34%]
> tests/unit/borg/test_environment.py .[
> 35%]
> tests/unit/borg/test_extract.py .. [
> 39%]
> tests/unit/borg/test_flags.py [
> 40%]
> tests/unit/borg/test_info.py ... [
> 43%]
> tests/unit/borg/test_init.py ... [
> 45%]
> tests/unit/borg/test_list.py .. [
> 52%]
> tests/unit/borg/test_mount.py . [
> 54%]
> tests/unit/borg/test_prune.py . [
> 57%]
> tests/unit/borg/test_umount.py ... [
> 58%]
> tests/unit/commands/test_arguments.py [
> 59%]
> tests/unit/commands/test_borgmatic.py .. [
> 66%]
> ...F [
> 67%]
> tests/unit/config/test_checks.py ... [
> 68%]
> tests/unit/config/test_collect.py ...[
> 70%]
> tests/unit/config/test_convert.py ...[
> 71%]
> tests/unit/config/test_generate.py . [
> 73%]
> tests/unit/config/test_legacy.py . [
> 76%]
> tests/unit/config/test_normalize.py [
> 77%]
> tests/unit/config/test_override.py ..[
> 79%]
> tests/unit/config/test_validate.py ..[
> 82%]
> tests/unit/hooks/test_command.py [
> 85%]
> tests/unit/hooks/test_cronhub.py . [
> 86%]
> tests/unit/hooks/test_cronitor.py [
> 87%]
> tests/unit/hooks/test_dispatch.py . [
> 88%]
> tests/unit/hooks/test_dump.py [
> 92%]
> tests/unit/hooks/test_healthchecks.py ..FFF. [
> 94%]
> tests/unit/hooks/test_mysql.py ... [
> 96%]
> tests/unit/hooks/test_pagerduty.py [
> 97%]
> tests/unit/hooks/test_postgresql.py
> [100%]
>
> === FAILURES
> ===
> ___ test_collect_configuration_run_summary_logs_outputs_merged_json_results
>
>
> def
> test_collect_configuration_run_summary_logs_outputs_merged_json_results():
>
> flexmock(module).should_receive('run_configuration').and_return(['foo',
> 'bar']).and_return(
> ['baz']
> )
>> flexmock(module.sys.stdout).should_receive('write').with_args('["foo",
>> "bar", "baz"]').once()
>
> tests/unit/commands/test_borgmatic.py:439:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /usr/lib/python3/dist-packages/flexmock.py:391: in with_args
> self._verify_signature_match(*kargs, **kwargs)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self =
> kargs = ('["foo", "bar", "baz"]',), kwargs = {}, is_method = False, args_len
> = 2
> minimum = 2, maximum = 2, total_positional = 1, named_optionals = []
>
> def _verify_signature_match(self, *kargs, **kwargs):
> if isinstance(self._mock, Mock):
> return # no sense in enforcing this for fake objects
> allowed = self.argspec
> # we consider object a method for purposes or not counting
> "self"/"cls" as argument