=== python3.9 ===
test_application_base (tests.test_application.ApplicationTestCase) ... ok
test_application_help_1 (tests.test_application.ApplicationTestCase) ... ok
test_application_help_2 (tests.test_application.ApplicationTestCase) ... ERROR
test_application_help_3 (tests.test_application.ApplicationTestCase) ... ERROR
test_application_help_4 (tests.test_application.ApplicationTestCase) ... ERROR
test_application_help_5 (tests.test_application.ApplicationTestCase) ... ERROR
test_application_help_6 (tests.test_application.ApplicationTestCase) ... ERROR
test__fill_text_1 (tests.test_formatter.HelpFormatterTestCase) ... ok
test__fill_text_2 (tests.test_formatter.HelpFormatterTestCase) ... ok
test__fill_text_3 (tests.test_formatter.HelpFormatterTestCase) ... ok
test__format_actions_usage_1 (tests.test_formatter.HelpFormatterTestCase) ... ok
test_group (tests.test_group.GroupTestCase) ... ok
======================================================================
ERROR: test_application_help_2 (tests.test_application.ApplicationTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.9/argparse.py", line 1869, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "/usr/lib/python3.9/argparse.py", line 2060, in _parse_known_args
positionals_end_index = consume_positionals(start_index)
File "/usr/lib/python3.9/argparse.py", line 2037, in consume_positionals
take_action(action, args)
File "/usr/lib/python3.9/argparse.py", line 1930, in take_action
argument_values = self._get_values(action, argument_strings)
File "/usr/lib/python3.9/argparse.py", line 2471, in _get_values
self._check_value(action, value[0])
File "/usr/lib/python3.9/argparse.py", line 2518, in _check_value
raise ArgumentError(action, msg % args)
argparse.ArgumentError: argument command: invalid choice: 'discover' (choose from 'help')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/autopkgtest.njn3t3/autopkgtest_tmp/tests/test_application.py", line 51, in test_application_help_2
tester.test_application()
File "/usr/lib/python3/dist-packages/wilderness/tester.py", line 82, in test_application
self._retcode = self.application.run()
File "/usr/lib/python3/dist-packages/wilderness/application.py", line 187, in run
parsed_args = self._parser.parse_args(args=args, namespace=namespace)
File "/usr/lib/python3.9/argparse.py", line 1836, in parse_args
args, argv = self.parse_known_args(args, namespace)
File "/usr/lib/python3.9/argparse.py", line 1872, in parse_known_args
self.error(str(err))
File "/usr/lib/python3.9/argparse.py", line 2593, in error
self.exit(2, _('%(prog)s: error: %(message)s\n') % args)
File "/usr/lib/python3/dist-packages/wilderness/parser.py", line 28, in exit
sys.exit(status)
SystemExit: 2
Running tests this way is pretty standard, especially for distros like Debian where we tend to have automated templates to run tests during build.