Bug#1143365: marked as done (python-argcomplete: FTBFS: test.py: error: too few arguments)

"Debian Bug Tracking System" <[email protected]> Wed, 05 Aug 2026 09:19:03 +0000
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <handler.1143365.D1143365.17859215103987197.ackdone@bugs.debian.org>
This is a multi-part message in MIME format...

------------=_1785921543-3988299-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Wed, 5 Aug 2026 10:18:28 +0100
with message-id <[email protected]>
and subject line Re: Bug#1143365: python-argcomplete: FTBFS: test.py: error=
: too few arguments
has caused the Debian Bug report #1143365,
regarding python-argcomplete: FTBFS: test.py: error: too few arguments
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


--=20
1143365: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1143365
Debian Bug Tracking System
Contact [email protected] with problems

------------=_1785921543-3988299-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 1 Aug 2026 22:37:35 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-121.6 required=4.0 tests=BAYES_00,
	BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,HAS_PACKAGE,
	RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,USER_IN_DKIM_WELCOMELIST,
	X_DEBBUGS_CC autolearn=ham autolearn_force=no
	version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 319; hammy, 150; neutral, 175; spammy,
	0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--pkgbuilddir,
	0.000-+--PKGBUILDDIR, 0.000-+--HTo:N*Debian, 0.000-+--forky
Return-path: <[email protected]>
Received: from mitropoulos.debian.org ([2001:648:2ffc:deb:216:61ff:fe9d:958d]:56384)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <[email protected]>)
	id 1wqIKl-006loA-1F
	for [email protected];
	Sat, 01 Aug 2026 22:37:35 +0000
Received: via submission
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=paradis.debian.org,[email protected] (verified)
	by mitropoulos.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <[email protected]>)
	id 1wqIKj-00FE4C-1U
	for [email protected];
	Sat, 01 Aug 2026 22:37:33 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.paradis; h=Date:Message-Id:Subject:To:From:Reply-To:Cc:
	MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:
	Content-Description:In-Reply-To:References;
	bh=2Fwe6tM01El47FGmavh72Pr98l2caGmRDksWxZv9STI=; b=eAHOKO5oR+ngDQx0Zbt8hj0KYn
	ChEP3FfDUgY9jy8UX/eLspTI3HpmBVegvDiKix3Qtq0TTE32CWXdFIt6o7DT6wtRo8WfXILsMVwtr
	k8Jx2uex/aT8Wkte2yLb1o/Wd5SQddqMdcQCACbyXti3lWG5vPGNaXRllsjh4iR5Za+Ov9T2td7VQ
	+1CHxLTZUpJ0zHX8Jz8+ALz+JWYDI9e4VGJUEsVrkZExEj8l14Xcwl23/gdgw/oXbuL8ZtJwuSjgc
	dsuujDul1QSne2Yk4P6GSI8A+qUJdMjOaOAuWzhK4COT5d0CUWMC6ac3DHPMzFGDr2w0g/d7NG2di
	FZuFoxAw==;
Received: from sanvila by paradis.debian.org with local (Exim 4.96)
	(envelope-from <[email protected]>)
	id 1wqIKh-00DZN1-2g
	for [email protected];
	Sat, 01 Aug 2026 22:37:31 +0000
From: Santiago Vila <[email protected]>
To: Debian BTS <[email protected]>
Subject: python-argcomplete: FTBFS: test.py: error: too few arguments
X-Debbugs-Cc: [email protected]
Message-Id: <[email protected]>
Date: Sat, 01 Aug 2026 22:37:31 +0000
Delivered-To: [email protected]

Package: src:python-argcomplete
Version: 3.6.3-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-argcomplete, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:142: Building wheel for python3.13 with "build" module
I: pybuild base:385: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_argcomplete  
* Building wheel...
Successfully built argcomplete-3.6.3-py3-none-any.whl

[... snipped ...]

test_console_script_package_wheel (__main__.TestBashGlobal.test_console_script_package_wheel)
Test completing a console_script for a package from a wheel. ... ok
test_continuation (__main__.TestBashGlobal.test_continuation) ... ok
test_debug_output (__main__.TestBashGlobal.test_debug_output) ... ok
test_double_quoted_completion (__main__.TestBashGlobal.test_double_quoted_completion) ... ok
test_exclamation_in_double_quotes (__main__.TestBashGlobal.test_exclamation_in_double_quotes) ... expected failure
test_nounset (__main__.TestBashGlobal.test_nounset) ... ok
test_one_space_after_exact (__main__.TestBashGlobal.test_one_space_after_exact)
Test exactly one space is appended after an exact match. ... ok
test_parse_special_characters (__main__.TestBashGlobal.test_parse_special_characters) ... ok
test_parse_special_characters_dollar (__main__.TestBashGlobal.test_parse_special_characters_dollar) ... expected failure
test_partial_completion (__main__.TestBashGlobal.test_partial_completion) ... ok
test_python_completion (__main__.TestBashGlobal.test_python_completion) ... ok
test_python_filename_completion (__main__.TestBashGlobal.test_python_filename_completion) ... ok
test_python_module (__main__.TestBashGlobal.test_python_module)
Test completing a module run with python -m. ... ok
test_python_not_executable (__main__.TestBashGlobal.test_python_not_executable)
Test completing a script that cannot be run directly. ... ok
test_python_stuck (__main__.TestBashGlobal.test_python_stuck) ... ok
test_quoted_exact (__main__.TestBashGlobal.test_quoted_exact) ... ok
test_quoted_space (__main__.TestBashGlobal.test_quoted_space) ... ok
test_quotes (__main__.TestBashGlobal.test_quotes) ... ok
test_redirection_completion (__main__.TestBashGlobal.test_redirection_completion) ... ok
test_simple_completion (__main__.TestBashGlobal.test_simple_completion) ... ok
test_single_quoted_completion (__main__.TestBashGlobal.test_single_quoted_completion) ... ok
test_single_quotes_in_double_quotes (__main__.TestBashGlobal.test_single_quotes_in_double_quotes) ... ok
test_single_quotes_in_single_quotes (__main__.TestBashGlobal.test_single_quotes_in_single_quotes) ... ok
test_special_characters (__main__.TestBashGlobal.test_special_characters) ... ok
test_special_characters_double_quoted (__main__.TestBashGlobal.test_special_characters_double_quoted) ... ok
test_special_characters_single_quoted (__main__.TestBashGlobal.test_special_characters_single_quoted) ... ok
test_temp_file (__main__.TestBashGlobal.test_temp_file) ... ok
test_unquoted_space (__main__.TestBashGlobal.test_unquoted_space) ... ok
test_wordbreak_chars (__main__.TestBashGlobal.test_wordbreak_chars) ... ok
test_module (__main__.TestCheckModule.test_module) ... ok
test_not_package (__main__.TestCheckModule.test_not_package) ... ok
test_package (__main__.TestCheckModule.test_package) ... ok
test_package_main (__main__.TestCheckModule.test_package_main) ... ok
test_subpackage (__main__.TestCheckModule.test_subpackage) ... ok
test_escaped_special (__main__.TestSplitLine.test_escaped_special) ... ok
test_escaped_special_in_double_quotes (__main__.TestSplitLine.test_escaped_special_in_double_quotes) ... expected failure
test_last_wordbreak_pos (__main__.TestSplitLine.test_last_wordbreak_pos) ... ok
test_punctuation (__main__.TestSplitLine.test_punctuation) ... ok
test_simple (__main__.TestSplitLine.test_simple) ... ok
test_unescaped_special (__main__.TestSplitLine.test_unescaped_special) ... ok
test_comp_point (__main__.TestZsh.test_comp_point) ... skipped 'skip'
test_completion_environment (__main__.TestZsh.test_completion_environment) ... skipped 'skip'
test_continuation (__main__.TestZsh.test_continuation) ... ok
test_double_quoted_completion (__main__.TestZsh.test_double_quoted_completion) ... ok
test_exclamation_in_double_quotes (__main__.TestZsh.test_exclamation_in_double_quotes) ... ok
test_parse_special_characters (__main__.TestZsh.test_parse_special_characters) ... skipped 'skip'
test_parse_special_characters_dollar (__main__.TestZsh.test_parse_special_characters_dollar) ... skipped 'skip'
test_partial_completion (__main__.TestZsh.test_partial_completion) ... ok
test_quoted_exact (__main__.TestZsh.test_quoted_exact) ... ok
test_quoted_space (__main__.TestZsh.test_quoted_space) ... ok
test_quotes (__main__.TestZsh.test_quotes) ... ok
test_simple_completion (__main__.TestZsh.test_simple_completion) ... ok
test_single_quoted_completion (__main__.TestZsh.test_single_quoted_completion) ... ok
test_single_quotes_in_double_quotes (__main__.TestZsh.test_single_quotes_in_double_quotes) ... ok
test_single_quotes_in_single_quotes (__main__.TestZsh.test_single_quotes_in_single_quotes) ... ok
test_special_characters (__main__.TestZsh.test_special_characters) ... ok
test_special_characters_double_quoted (__main__.TestZsh.test_special_characters_double_quoted) ... ok
test_special_characters_single_quoted (__main__.TestZsh.test_special_characters_single_quoted) ... ok
test_unquoted_space (__main__.TestZsh.test_unquoted_space) ... ok
test_wordbreak_chars (__main__.TestZsh.test_wordbreak_chars) ... ok
test_comp_point (__main__.TestZshGlobalExplicit.test_comp_point) ... skipped 'skip'
test_completion_environment (__main__.TestZshGlobalExplicit.test_completion_environment) ... skipped 'skip'
test_console_script_module (__main__.TestZshGlobalExplicit.test_console_script_module)
Test completing a console_script for a module. ... ok
test_console_script_module_wheel (__main__.TestZshGlobalExplicit.test_console_script_module_wheel)
Test completing a console_script for a module from a wheel. ... ok
test_console_script_package (__main__.TestZshGlobalExplicit.test_console_script_package)
Test completing a console_script for a package. ... ok
test_console_script_package_wheel (__main__.TestZshGlobalExplicit.test_console_script_package_wheel)
Test completing a console_script for a package from a wheel. ... ok
test_continuation (__main__.TestZshGlobalExplicit.test_continuation) ... ok
test_double_quoted_completion (__main__.TestZshGlobalExplicit.test_double_quoted_completion) ... ok
test_exclamation_in_double_quotes (__main__.TestZshGlobalExplicit.test_exclamation_in_double_quotes) ... ok
test_parse_special_characters (__main__.TestZshGlobalExplicit.test_parse_special_characters) ... skipped 'skip'
test_parse_special_characters_dollar (__main__.TestZshGlobalExplicit.test_parse_special_characters_dollar) ... skipped 'skip'
test_partial_completion (__main__.TestZshGlobalExplicit.test_partial_completion) ... ok
test_python_completion (__main__.TestZshGlobalExplicit.test_python_completion) ... FAIL
test_python_filename_completion (__main__.TestZshGlobalExplicit.test_python_filename_completion) ... FAIL
test_python_module (__main__.TestZshGlobalExplicit.test_python_module)
Test completing a module run with python -m. ... FAIL
test_python_not_executable (__main__.TestZshGlobalExplicit.test_python_not_executable)
Test completing a script that cannot be run directly. ... FAIL
test_python_stuck (__main__.TestZshGlobalExplicit.test_python_stuck) ... ok
test_quoted_exact (__main__.TestZshGlobalExplicit.test_quoted_exact) ... ok
test_quoted_space (__main__.TestZshGlobalExplicit.test_quoted_space) ... ok
test_quotes (__main__.TestZshGlobalExplicit.test_quotes) ... ok
test_redirection_completion (__main__.TestZshGlobalExplicit.test_redirection_completion) ... ok
test_simple_completion (__main__.TestZshGlobalExplicit.test_simple_completion) ... ok
test_single_quoted_completion (__main__.TestZshGlobalExplicit.test_single_quoted_completion) ... ok
test_single_quotes_in_double_quotes (__main__.TestZshGlobalExplicit.test_single_quotes_in_double_quotes) ... ok
test_single_quotes_in_single_quotes (__main__.TestZshGlobalExplicit.test_single_quotes_in_single_quotes) ... ok
test_special_characters (__main__.TestZshGlobalExplicit.test_special_characters) ... ok
test_special_characters_double_quoted (__main__.TestZshGlobalExplicit.test_special_characters_double_quoted) ... ok
test_special_characters_single_quoted (__main__.TestZshGlobalExplicit.test_special_characters_single_quoted) ... ok
test_unquoted_space (__main__.TestZshGlobalExplicit.test_unquoted_space) ... ok
test_wordbreak_chars (__main__.TestZshGlobalExplicit.test_wordbreak_chars) ... ok
test_comp_point (__main__.TestZshGlobalImplicit.test_comp_point) ... skipped 'skip'
test_completion_environment (__main__.TestZshGlobalImplicit.test_completion_environment) ... skipped 'skip'
test_console_script_module (__main__.TestZshGlobalImplicit.test_console_script_module)
Test completing a console_script for a module. ... ok
test_console_script_module_wheel (__main__.TestZshGlobalImplicit.test_console_script_module_wheel)
Test completing a console_script for a module from a wheel. ... ok
test_console_script_package (__main__.TestZshGlobalImplicit.test_console_script_package)
Test completing a console_script for a package. ... ok
test_console_script_package_wheel (__main__.TestZshGlobalImplicit.test_console_script_package_wheel)
Test completing a console_script for a package from a wheel. ... ok
test_continuation (__main__.TestZshGlobalImplicit.test_continuation) ... ok
test_double_quoted_completion (__main__.TestZshGlobalImplicit.test_double_quoted_completion) ... ok
test_exclamation_in_double_quotes (__main__.TestZshGlobalImplicit.test_exclamation_in_double_quotes) ... ok
test_parse_special_characters (__main__.TestZshGlobalImplicit.test_parse_special_characters) ... skipped 'skip'
test_parse_special_characters_dollar (__main__.TestZshGlobalImplicit.test_parse_special_characters_dollar) ... skipped 'skip'
test_partial_completion (__main__.TestZshGlobalImplicit.test_partial_completion) ... ok
test_python_completion (__main__.TestZshGlobalImplicit.test_python_completion) ... FAIL
test_python_filename_completion (__main__.TestZshGlobalImplicit.test_python_filename_completion) ... FAIL
test_python_module (__main__.TestZshGlobalImplicit.test_python_module)
Test completing a module run with python -m. ... FAIL
test_python_not_executable (__main__.TestZshGlobalImplicit.test_python_not_executable)
Test completing a script that cannot be run directly. ... FAIL
test_python_stuck (__main__.TestZshGlobalImplicit.test_python_stuck) ... ok
test_quoted_exact (__main__.TestZshGlobalImplicit.test_quoted_exact) ... ok
test_quoted_space (__main__.TestZshGlobalImplicit.test_quoted_space) ... ok
test_quotes (__main__.TestZshGlobalImplicit.test_quotes) ... ok
test_redirection_completion (__main__.TestZshGlobalImplicit.test_redirection_completion) ... ok
test_simple_completion (__main__.TestZshGlobalImplicit.test_simple_completion) ... ok
test_single_quoted_completion (__main__.TestZshGlobalImplicit.test_single_quoted_completion) ... ok
test_single_quotes_in_double_quotes (__main__.TestZshGlobalImplicit.test_single_quotes_in_double_quotes) ... ok
test_single_quotes_in_single_quotes (__main__.TestZshGlobalImplicit.test_single_quotes_in_single_quotes) ... ok
test_special_characters (__main__.TestZshGlobalImplicit.test_special_characters) ... ok
test_special_characters_double_quoted (__main__.TestZshGlobalImplicit.test_special_characters_double_quoted) ... ok
test_special_characters_single_quoted (__main__.TestZshGlobalImplicit.test_special_characters_single_quoted) ... ok
test_unquoted_space (__main__.TestZshGlobalImplicit.test_unquoted_space) ... ok
test_wordbreak_chars (__main__.TestZshGlobalImplicit.test_wordbreak_chars) ... ok
test_warn (__main__.Warn.test_warn) ... ok

======================================================================
FAIL: test_python_completion (__main__.TestZshGlobalExplicit.test_python_completion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/test/test.py", line 1351, in test_python_completion
    self.assertEqual(self.sh.run_command("python3 ./prog basic f\t"), "foo\r\n")
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "\x1b[1;34musage: \x1b[0m\x1b[1;35mprog basic\x1b[0m [\x1b[32m-h\x1b[0m] \x1b[32m{foo,bar,baz}\x1b[0m\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')\r\n" != 'foo\r\n'
+ foo

- usage: prog basic [-h] {foo,bar,baz}

- prog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')



======================================================================
FAIL: test_python_filename_completion (__main__.TestZshGlobalExplicit.test_python_filename_completion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/test/test.py", line 1355, in test_python_filename_completion
    self.assertEqual(self.sh.run_command("python3 ./pro\tbasic f\t"), "foo\r\n")
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "\x1b[1;34musage: \x1b[0m\x1b[1;35mprog basic\x1b[0m [\x1b[32m-h\x1b[0m] \x1b[32m{foo,bar,baz}\x1b[0m\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')\r\n" != 'foo\r\n'
+ foo

- usage: prog basic [-h] {foo,bar,baz}

- prog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')



======================================================================
FAIL: test_python_module (__main__.TestZshGlobalExplicit.test_python_module)
Test completing a module run with python -m.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/test/test.py", line 1381, in test_python_module
    self.assertEqual(self.sh.run_command("python3 -m package.prog basic f\t"), "foo\r\n")
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "\x1b[1;34musage: \x1b[0m\x1b[1;35mpython3 -m package.prog basic\x1b[0m [\x1b[32m-h\x1b[0m] \x1b[32m{foo,bar,baz}\x1b[0m\r\npython3 -m package.prog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')\r\n" != 'foo\r\n'
+ foo

- usage: python3 -m package.prog basic [-h] {foo,bar,baz}

- python3 -m package.prog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')



======================================================================
FAIL: test_python_not_executable (__main__.TestZshGlobalExplicit.test_python_not_executable)
Test completing a script that cannot be run directly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/test/test.py", line 1371, in test_python_not_executable
    self.assertEqual(self.sh.run_command("python3 ./prog basic f\t"), "foo\r\n")
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "\x1b[1;34musage: \x1b[0m\x1b[1;35mprog basic\x1b[0m [\x1b[32m-h\x1b[0m] \x1b[32m{foo,bar,baz}\x1b[0m\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')\r\n" != 'foo\r\n'
+ foo

- usage: prog basic [-h] {foo,bar,baz}

- prog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')



======================================================================
FAIL: test_python_completion (__main__.TestZshGlobalImplicit.test_python_completion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/test/test.py", line 1351, in test_python_completion
    self.assertEqual(self.sh.run_command("python3 ./prog basic f\t"), "foo\r\n")
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "\x1b[1;34musage: \x1b[0m\x1b[1;35mprog basic\x1b[0m [\x1b[32m-h\x1b[0m] \x1b[32m{foo,bar,baz}\x1b[0m\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')\r\n" != 'foo\r\n'
+ foo

- usage: prog basic [-h] {foo,bar,baz}

- prog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')



======================================================================
FAIL: test_python_filename_completion (__main__.TestZshGlobalImplicit.test_python_filename_completion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/test/test.py", line 1355, in test_python_filename_completion
    self.assertEqual(self.sh.run_command("python3 ./pro\tbasic f\t"), "foo\r\n")
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "\x1b[1;34musage: \x1b[0m\x1b[1;35mprog basic\x1b[0m [\x1b[32m-h\x1b[0m] \x1b[32m{foo,bar,baz}\x1b[0m\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')\r\n" != 'foo\r\n'
+ foo

- usage: prog basic [-h] {foo,bar,baz}

- prog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')



======================================================================
FAIL: test_python_module (__main__.TestZshGlobalImplicit.test_python_module)
Test completing a module run with python -m.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/test/test.py", line 1381, in test_python_module
    self.assertEqual(self.sh.run_command("python3 -m package.prog basic f\t"), "foo\r\n")
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "\x1b[1;34musage: \x1b[0m\x1b[1;35mpython3 -m package.prog basic\x1b[0m [\x1b[32m-h\x1b[0m] \x1b[32m{foo,bar,baz}\x1b[0m\r\npython3 -m package.prog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')\r\n" != 'foo\r\n'
+ foo

- usage: python3 -m package.prog basic [-h] {foo,bar,baz}

- python3 -m package.prog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')



======================================================================
FAIL: test_python_not_executable (__main__.TestZshGlobalImplicit.test_python_not_executable)
Test completing a script that cannot be run directly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/test/test.py", line 1371, in test_python_not_executable
    self.assertEqual(self.sh.run_command("python3 ./prog basic f\t"), "foo\r\n")
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "\x1b[1;34musage: \x1b[0m\x1b[1;35mprog basic\x1b[0m [\x1b[32m-h\x1b[0m] \x1b[32m{foo,bar,baz}\x1b[0m\r\nprog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')\r\n" != 'foo\r\n'
+ foo

- usage: prog basic [-h] {foo,bar,baz}

- prog basic: error: argument arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')



----------------------------------------------------------------------
Ran 189 tests in 119.933s

FAILED (failures=8, skipped=12, expected failures=5)
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_argcomplete/build; PATH={home_dir}/scripts:$PATH PYTHONPATH={build_dir} PIP_NO_BUILD_ISOLATION=off {interpreter} {dir}/test/test.py -v
dh_auto_test: error: pybuild --test -i python{version} -p "3.13 3.14" --parallel=2 returned exit code 13
make: *** [debian/rules:21: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

------------=_1785921543-3988299-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 1143365-done) by bugs.debian.org; 5 Aug 2026 09:18:30 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-110.0 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
	DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
	FROMDEVELOPER,HAS_BUG_NUMBER,SPF_HELO_NONE,SPF_PASS,
	USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
	version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 14; hammy, 150; neutral, 75; spammy,
	0. spammytokens:
	hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
	0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
	0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: <[email protected]>
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:55566)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <[email protected]>)
	id 1wrXle-00GjFS-2O
	for [email protected];
	Wed, 05 Aug 2026 09:18:30 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Transfer-Encoding:
	Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To
	:Cc:Content-ID:Content-Description;
	bh=Q4Ok6D6Bz38/ssiqz9TQWtHqzyb6dWBUqJ7LcQS4uMQ=; b=wKkk3KfGRz9eIYeR8zwX9+2nX/
	QSQkFljaAyiis4M/HqzfZjE/RrUrXyggUl+pzQq+uK+n4fRJlE8C8ywtheB4qVW7Pzts3wLZQ828l
	lHq4jjQSy98lajpt+eqZsGnRGC9HDRs7TQuld+7LyBP+N8J0lH/WdcLJm+qGF541W/rycWj/Ud+IN
	9trqAhDkkzkYZ1XFl2b+paoh1mkrLtKc1C5DKepJBupEJopp3OjFd8zgcPCvzLkbTTP49eXaW0sIv
	Gt2gVv+XQiV/CglzAk+uCcdtjP63bMw1UnOIhhLXYVZAcvkJmx820dVWq9mxATJcMmCBruUMcHefC
	Pej7BCcQ==;
Received: from authenticated-user
	by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <[email protected]>)
	id 1wrXld-00DoSP-1T
	for [email protected];
	Wed, 05 Aug 2026 09:18:29 +0000
Received: from ns1.rosewood.vpn.ucam.org ([172.20.153.2] helo=riva.ucam.org)
	by riva.rosewood.vpn.ucam.org with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
	(Exim 4.98.2)
	(envelope-from <[email protected]>)
	id 1wrXld-0000000Dy0l-0aZ6
	for [email protected];
	Wed, 05 Aug 2026 10:18:29 +0100
Date: Wed, 5 Aug 2026 10:18:28 +0100
From: Colin Watson <[email protected]>
To: [email protected]
Subject: Re: Bug#1143365: python-argcomplete: FTBFS: test.py: error: too few
 arguments
Message-ID: <[email protected]>
References: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
In-Reply-To: <[email protected]>
X-Debian-User: cjwatson

Source: python-argcomplete
Source-Version: 3.7.0-1

On Sat, Aug 01, 2026 at 10:37:31PM +0000, Santiago Vila wrote:
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>FAIL: test_python_completion (__main__.TestZshGlobalExplicit.test_python_c=
ompletion)
>----------------------------------------------------------------------
>Traceback (most recent call last):
>  File "/<<PKGBUILDDIR>>/test/test.py", line 1351, in test_python_completi=
on
>    self.assertEqual(self.sh.run_command("python3 ./prog basic f\t"), "foo=
\r\n")
>    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^=
^^^^^^
>AssertionError: "\x1b[1;34musage: \x1b[0m\x1b[1;35mprog basic\x1b[0m [\x1b=
[32m-h\x1b[0m] \x1b[32m{foo,bar,baz}\x1b[0m\r\nprog basic: error: argument =
arg: invalid choice: 'f' (choose from 'foo', 'bar', 'baz')\r\n" !=3D 'foo\r=
\n'
>+ foo
>
>- =1B[1;34musage: =1B[0m=1B[1;35mprog basic=1B[0m [=1B[32m-h=1B[0m] =1B[32=
m{foo,bar,baz}=1B[0m
>
>- prog basic: error: argument arg: invalid choice: 'f' (choose from 'foo',=
 'bar', 'baz')

I closed the wrong bug number by mistake.  I'll correct the changelog=20
retroactively in git.

python-argcomplete (3.7.0-1) unstable; urgency=3Dmedium

   * Team upload.
   * New upstream release.
   * Adjust completion for zsh >=3D 5.9.1 (closes: #1114741).
   * Drop "Rules-Requires-Root: no", default as of dpkg-dev 1.22.13.
   * Drop "Priority: optional", default as of dpkg-dev 1.22.13.
   * Standards-Version: 4.7.4.

  -- Colin Watson <[email protected]>  Mon, 03 Aug 2026 19:16:31 +0100

Thanks,

--=20
Colin Watson (he/him)                              [[email protected]]
------------=_1785921543-3988299-0--