[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1001487: sphinx-argparse: (autopkgtest) needs update for python3.10: output changed



Source: sphinx-argparse
Version: 0.2.5-1
Severity: serious
X-Debbugs-CC: debian-ci@lists.debian.org
Tags: sid bookworm
User: debian-ci@lists.debian.org
Usertags: needs-update
User: debian-python@lists.debian.org
Usertags: python3.10
Control: affects -1 src:python3-defaults

Dear maintainer(s),

We are in the transition of adding python3.10 to the supported Python versions [0]. With a recent upload of python3-defaults the autopkgtest of sphinx-argparse fails in testing when that autopkgtest is run with the binary packages of python3-defaults from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
python3-defaults       from testing    3.9.8-1
sphinx-argparse        from testing    0.2.5-1
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of python3-defaults to testing [1]. https://docs.python.org/3/whatsnew/3.10.html lists what's new in Python3.10, it may help to identify what needs to be updated.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[0] https://bugs.debian.org/996584
[1] https://qa.debian.org/excuses.php?package=python3-defaults

https://ci.debian.net/data/autopkgtest/testing/amd64/s/sphinx-argparse/17446743/log.gz

[*] testing python3.10:
============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3.10
cachedir: .pytest_cache
rootdir: /tmp/autopkgtest-lxc.xannnapd/downtmp/autopkgtest_tmp
collecting ... collected 16 items

test/test_parser.py::test_parse_options PASSED [ 6%] test/test_parser.py::test_parse_default PASSED [ 12%] test/test_parser.py::test_parse_arg_choices PASSED [ 18%] test/test_parser.py::test_parse_opt_choices PASSED [ 25%] test/test_parser.py::test_parse_default_skip_default PASSED [ 31%] test/test_parser.py::test_parse_positional PASSED [ 37%] test/test_parser.py::test_parse_description PASSED [ 43%] test/test_parser.py::test_parse_nested FAILED [ 50%]

=================================== FAILURES =================================== ______________________________ test_parse_nested _______________________________

    def test_parse_nested():
        parser = argparse.ArgumentParser(prog='test_parse_nested')
        parser.add_argument('foo', default=False, help='foo help')
        parser.add_argument('bar', default=False)
            subparsers = parser.add_subparsers()
subparser = subparsers.add_parser('install', help='install help')
        subparser.add_argument('ref', type=str, help='foo1 help')
subparser.add_argument('--upgrade', action='store_true', default=False, help='foo2 help')
            data = parse_parser(parser)
            assert data['action_groups'][0]['options'] == [
            {
                'name': ['foo'],
                'help': 'foo help',
                'default': False
            }, {
                'name': ['bar'],
                'help': '',
                'default': False
            }
        ]
    >       assert data['children'] == [
            {
                'name': 'install',
                'help': 'install help',
'usage': 'usage: test_parse_nested install [-h] [--upgrade] ref', 'bare_usage': 'test_parse_nested install [-h] [--upgrade] ref',
                'action_groups': [
                    {
                        'title': 'Positional Arguments',
                        'description': None,
                        'options': [
                            {
                                'name': ['ref'],
                                'help': 'foo1 help',
                                'default': None
                            }
                        ]
                    },
                    {
                        'description': None,
                        'title': 'Named Arguments',
                        'options': [
                            {
                                'name': ['--upgrade'],
                                'default': False,
                                'help': 'foo2 help'
                            }
                        ]
                    }
                ]
            }
        ]
E AssertionError: assert [{'action_gro...nstall', ...}] == [{'action_gro...nstall', ...}] E At index 0 diff: {'name': 'install', 'help': 'install help', 'usage': 'usage: test_parse_nested install [-h] [--upgrade] ref', 'bare_usage': 'test_parse_nested install [-h] [--upgrade] ref', 'action_groups': [{'title': 'Positional Arguments', 'description': None, 'options': [{'name': ['ref'], 'default': None, 'help': 'foo1 help'}]}, {'title': 'options', 'description': None, 'options': [{'name': ['--upgrade'], 'default': False, 'help': 'foo2 help'}]}]} != {'name': 'install', 'help': 'install help', 'usage': 'usage: test_parse_nested install [-h] [--upgrade] ref', 'bare_u... E E ...Full output truncated (21 lines hidden), use '-vv' to show

test/test_parser.py:157: AssertionError
=========================== short test summary info ============================ FAILED test/test_parser.py::test_parse_nested - AssertionError: assert [{'act... !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! ========================= 1 failed, 7 passed in 0.06s ==========================
autopkgtest [14:18:26]: test python3-sphinx-argparse

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: