Package: python3-argcomplete
Version: 3.1.4-1
Severity: serious

https://ci.debian.net/packages/p/python-argcomplete/unstable/amd64/45886560/

102s ======================================================================
102s ERROR: test_repl_parse_after_complete
(__main__.TestArgcompleteREPL.test_repl_parse_after_complete)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 925, in
test_repl_parse_after_complete
102s     args = p.parse_args(["--foo", "spam", "bar"])
102s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102s   File "/usr/lib/python3.12/argparse.py", line 1908, in parse_args
102s     args, argv = self.parse_known_args(args, namespace)
102s                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102s   File "/usr/lib/python3.12/argparse.py", line 1941, in parse_known_args
102s     namespace, args = self._parse_known_args(args, namespace)
102s                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102s   File "/usr/lib/python3/dist-packages/argcomplete/packages/_argparse.py",
line 299, in _parse_known_args
102s     start_index = consume_optional(start_index)
102s                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102s   File "/usr/lib/python3/dist-packages/argcomplete/packages/_argparse.py",
line 165, in consume_optional
102s     action, option_string, explicit_arg = option_tuple
102s     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102s ValueError: too many values to unpack (expected 3)
102s
102s ======================================================================
102s FAIL: test_choices (__main__.TestArgcomplete.test_choices)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 170, in test_choices
102s     self.assertEqual(set(self.run_completer(make_parser(), cmd)),
set(output))
102s AssertionError: Items in the first set but not the second:
102s '-h'
102s '--help'
102s '--ship'
102s Items in the second set but not the first:
102s 'speedboat'
102s 'submarine'
102s
102s ======================================================================
102s FAIL: test_completers (__main__.TestArgcomplete.test_completers)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 291, in
test_completers
102s     self.assertEqual(set(self.run_completer(make_parser(), cmd)),
set(output))
102s AssertionError: Items in the first set but not the second:
102s '--url'
102s '--email'
102s '-h'
102s '--help'
102s Items in the second set but not the first:
102s 'http://url1'
102s 'http://url2'
102s
102s ======================================================================
102s FAIL: test_default_completer
(__main__.TestArgcomplete.test_default_completer)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 415, in
test_default_completer
102s     self.assertEqual(set(self.run_completer(make_parser(), cmd)),
set(output))
102s AssertionError: Items in the first set but not the second:
102s '--one'
102s '--many'
102s Items in the second set but not the first:
102s 'test/'
102s
102s ======================================================================
102s FAIL: test_escape_special_chars
(__main__.TestArgcomplete.test_escape_special_chars)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 823, in
test_escape_special_chars
102s     self.assertEqual(set(self.run_completer(make_parser(), "prog -1 ")),
{r"bar\<\$\>baz "})
102s AssertionError: Items in the first set but not the second:
102s '-1'
102s '-2'
102s '-3'
102s Items in the second set but not the first:
102s 'bar\\<\\$\\>baz '
102s
102s ======================================================================
102s FAIL: test_exclusive (__main__.TestArgcomplete.test_exclusive)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 764, in test_exclusive
102s     self.assertEqual(set(self.run_completer(make_parser(), cmd)),
set(output))
102s AssertionError: Items in the first set but not the second:
102s '--no-bar'
102s
102s ======================================================================
102s FAIL: test_exclusive_class (__main__.TestArgcomplete.test_exclusive_class)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 813, in
test_exclusive_class
102s     self.assertEqual(set(self.run_completer(parser, cmd,
completer=completer)), set(output))
102s AssertionError: Items in the first set but not the second:
102s '--no-bar'
102s '--bar'
102s '--baz'
102s '--foo'
102s Items in the second set but not the first:
102s 'baz2'
102s 'baz1'
102s
102s ======================================================================
102s FAIL: test_filescompleter_filetype_integration
(__main__.TestArgcomplete.test_filescompleter_filetype_integration)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 369, in
test_filescompleter_filetype_integration
102s     self.assertEqual(set(self.run_completer(make_parser(), cmd)),
set(output))
102s AssertionError: Items in the first set but not the second:
102s '--w'
102s '--r'
102s '-h'
102s '--help'
102s Items in the second set but not the first:
102s 'abcxyz'
102s 'abcdefж/'
102s 'abcaha/'
102s
102s ======================================================================
102s FAIL: test_mixed_optional_positional
(__main__.TestArgcomplete.test_mixed_optional_positional)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 784, in
test_mixed_optional_positional
102s     self.assertEqual(set(self.run_completer(make_parser(), cmd)),
set(output))
102s AssertionError: Items in the first set but not the second:
102s '--set'
102s Items in the second set but not the first:
102s 'name2'
102s 'name1'
102s
102s ======================================================================
102s FAIL: test_non_ascii (__main__.TestArgcomplete.test_non_ascii)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 473, in test_non_ascii
102s     self.assertEqual(set(self.run_completer(make_parser(), cmd)),
set(output))
102s AssertionError: Items in the first set but not the second:
102s '--книга'
102s '-h'
102s '--help'
102s Items in the second set but not the first:
102s 'Парень\\ из\\ преисподней'
102s 'Понедельник\\ начинается\\ в\\ субботу'
102s 'Трудно\\ быть\\ богом'
102s
102s ======================================================================
102s FAIL: test_optional_nargs (__main__.TestArgcomplete.test_optional_nargs)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 688, in
test_optional_nargs
102s     self.assertEqual(set(self.run_completer(make_parser(), cmd)),
set(output))
102s AssertionError: Items in the first set but not the second:
102s '-h'
102s '--bar'
102s '--baz'
102s '--qux'
102s '--foo'
102s '--help'
102s '--foobar'
102s Items in the second set but not the first:
102s 'foo1'
102s 'foo2'
102s
102s ======================================================================
102s FAIL: test_positional_remainder
(__main__.TestArgcomplete.test_positional_remainder)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 708, in
test_positional_remainder
102s     self.assertEqual(set(self.run_completer(make_parser(), cmd)),
set(output))
102s AssertionError: Items in the second set but not the first:
102s '--opt'
102s 'pos'
102s
102s ======================================================================
102s FAIL: test_subparser_completers
(__main__.TestArgcomplete.test_subparser_completers)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 336, in
test_subparser_completers
102s     self.assertEqual(set(self.run_completer(make_parser(), cmd)),
set(output))
102s AssertionError: Items in the second set but not the first:
102s 'val5'
102s
102s ======================================================================
102s FAIL: test_subparsers (__main__.TestArgcomplete.test_subparsers)
102s ----------------------------------------------------------------------
102s Traceback (most recent call last):
102s   File "/tmp/autopkgtest-
lxc.q4aft1il/downtmp/autopkgtest_tmp/test/test.py", line 442, in
test_subparsers
102s     self.assertEqual(set(self.run_completer(make_parser(), cmd)),
set(output))
102s AssertionError: Items in the first set but not the second:
102s 'spam'
102s '--age'
102s 'eggs'
102s Items in the second set but not the first:
102s 'in\\ the\\ rain'
102s 'on\\ a\\ train'
102s 'on\\ a\\ boat'
102s 'with\\ a\\ goat'
102s
102s ----------------------------------------------------------------------
102s Ran 127 tests in 61.642s
102s
102s FAILED (failures=13, errors=1, expected failures=10)


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.7.9-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-argcomplete depends on:
ii  python3  3.11.8-1

python3-argcomplete recommends no packages.

python3-argcomplete suggests no packages.

-- debconf-show failed

Reply via email to