• Bug#1106440: python-mechanize: FTBFS: FAIL: test_missing_name (test.tes

    From Santiago Vila@21:1/5 to All on Sat May 24 18:50:03 2025
    Package: src:python-mechanize
    Version: 1:0.4.10+ds-3
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean --buildsystem=pybuild
    dh_auto_clean -O--buildsystem=pybuild
    pybuild --clean -i python{version} -p 3.13
    I: pybuild base:311: python3.13 setup.py clean /usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
    !!

    ********************************************************************************
    Please consider removing the following classifiers in favor of a SPDX license expression:

    License :: OSI Approved :: BSD License

    See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
    ********************************************************************************

    !!
    self._finalize_license_expression()
    running clean
    removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build' (and everything under it)
    'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.13' does not exist -- can't clean it
    rm -rf .pybuild/
    find . -name \*.pyc -exec rm {} \;
    dh_autoreconf_clean -O--buildsystem=pybuild
    dh_clean -O--buildsystem=pybuild
    rm -f debian/debhelper-build-stamp
    rm -rf debian/.debhelper/
    rm -f -- debian/python3-mechanize.substvars debian/files
    rm -fr -- debian/python3-mechanize/ debian/tmp/
    find . \( \( \
    \( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
    \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
    -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
    -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
    -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
    \) -exec rm -f {} + \) -o \
    \( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune -exec rm -rf {} + \) \)
    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
    pybuild --configure -i python{version} -p 3.13
    I: pybuild base:311: python3.13 setup.py config /usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
    !!

    ********************************************************************************
    Please consider removing the following classifiers in favor of a SPDX license expression:

    License :: OSI Approved :: BSD License

    See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
    ********************************************************************************

    !!
    self._finalize_license_expression()
    running config
    debian/rules override_dh_auto_build
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    dh_auto_build
    pybuild --build -i python{version} -p 3.13
    I: pybuild base:311: /usr/bin/python3 setup.py build /usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
    !!

    ********************************************************************************
    Please consider removing the following classifiers in favor of a SPDX license expression:

    License :: OSI Approved :: BSD License

    See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
    ********************************************************************************

    !!
    self._finalize_license_expression()
    running build
    running build_py
    creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize copying mechanize/_http.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_urllib2_fork.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_form_controls.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_clientcookie.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_auth.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_util.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_form.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_response.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_html.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_rfc3986.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_gzip.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_debug.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_headersutil.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_urllib2.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_equiv.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_opener.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/polyglot.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_entities.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_useragent.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_sockettimeout.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_mechanize.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_testcase.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    copying mechanize/_request.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    rm -f debian/python3-mechanize.debhelper.log
    debian/rules override_dh_auto_test-indep
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    # several points here:
    # - pybuild sets proxy server which breaks locally started server, disable it
    # - we need to explicitly change to the build dir, otherwise the test
    # uses the main files
    # Thanks to Dmitry Shachnev for finding all that!
    http_proxy= no_proxy= dh_auto_test -- --system custom --test-args "cd {build_dir}; {interpreter} run_tests.py"
    pybuild --test -i python{version} -p 3.13 --system custom --test-args "cd {build_dir}; {interpreter} run_tests.py"
    I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build; python3.13 run_tests.py
    ................................................F.../<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_headersutil.py:237: DeprecationWarning: 'maxsplit' is passed as positional argument
    k, v = re.split(r"\s*=\s*", param, 1) ......................................................................................................................./<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:85: ResourceWarning: unclosed <socket.socket fd=6, family=
    2, type=1, proto=6, laddr=('127.0.0.1', 34410), raddr=('127.0.0.1', 2121)>
    for meth in dir(handler):
    ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:85: ResourceWarning: unclosed <socket.socket [closed] fd=8, family=2, type=1, proto=6>
    for meth in dir(handler):
    ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:85: ResourceWarning: unclosed <socket.socket [closed] fd=9, family=2, type=1, proto=6>
    for meth in dir(handler):
    ResourceWarning: Enable tracemalloc to get the object allocation traceback ........./<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:123: ResourceWarning: unclosed <socket.socket [closed] fd=6, family=2, type=1, proto=6>
    lookup.setdefault(kind, set()).add(handler)
    ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:123: ResourceWarning: unclosed <socket.socket [closed] fd=7, family=2, type=1, proto=6>
    lookup.setdefault(kind, set()).add(handler)
    ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:123: ResourceWarning: unclosed <socket.socket [closed] fd=8, family=2, type=1, proto=6>
    lookup.setdefault(kind, set()).add(handler)
    ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:123: ResourceWarning: unclosed <socket.socket [closed] fd=9, family=2, type=1, proto=6>
    lookup.setdefault(kind, set()).add(handler)
    ResourceWarning: Enable tracemalloc to get the object allocation traceback ................./<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_headersutil.py:237: DeprecationWarning: 'maxsplit' is passed as positional argument
    k, v = re.split(r"\s*=\s*", param, 1) ..................................................................................../<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:99: ResourceWarning: unclosed <socket.socket [closed] fd=8, family=2, type=1, proto=6>
    ii = meth.find("_")
    ResourceWarning: Enable tracemalloc to get the object allocation traceback /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/mechanize/_opener.py:99: ResourceWarning: unclosed <socket.socket [closed] fd=9, family=2, type=1, proto=6>
    ii = meth.find("_")
    ResourceWarning: Enable tracemalloc to get the object allocation traceback ......................... ======================================================================
    FAIL: test_missing_name (test.test_cookies.CookieTests.test_missing_name) ---------------------------------------------------------------------- Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build/test/test_cookies.py", line 335, in test_missing_name
    assert lwp_cookie_str(cookie) == (
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    r'"spam"; path="/foo/"; domain="www.acme.com"; '
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    'path_spec; discard; version=0')
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AssertionError

    ----------------------------------------------------------------------
    Ran 306 tests in 5.560s

    FAILED (failures=1)
    E: pybuild pybuild:389: test: plugin custom failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mechanize/build; python3.13 run_tests.py
    rm -fr -- /tmp/dh-xdg-rundir-Ie0U9EWB
    dh_auto_test: error: pybuild --test -i python{version} -p 3.13 --system custom --test-args "cd {build_dir}; {interpreter} run_tests.py" returned exit code 13
    make[1]: *** [debian/rules:23: override_dh_auto_test-indep] Error 25
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    make: *** [debian/rules:9: binary] Error 2
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

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

    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 could not 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-mechanize, so that this is still visible in the BTS web page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Mon May 26 14:20:01 2025
    Processing control commands:

    tag -1 pending
    Bug #1106440 [src:python-mechanize] python-mechanize: FTBFS: FAIL: test_missing_name (test.test_cookies.CookieTests.test_missing_name)
    Added tag(s) pending.

    --
    1106440: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106440
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Colin Watson@21:1/5 to All on Mon May 26 14:20:01 2025
    Control: tag -1 pending

    Hello,

    Bug #1106440 in python-mechanize reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/python-team/packages/python-mechanize/-/commit/bab39c1626136493b4b301a47b713500a4424ccc

    ------------------------------------------------------------------------
    Fix CookieTests following fix for CPython #130631

    Closes: #1106440 ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1106440

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Mon May 26 14:40:02 2025
    This is a multi-part message in MIME format...

    Your message dated Mon, 26 May 2025 12:34:01 +0000
    with message-id <E1uJX1l-008ufG-99@fasolo.debian.org>
    and subject line Bug#1106440: fixed in python-mechanize 1:0.4.10+ds-4
    has caused the Debian Bug report #1106440,
    regarding python-mechanize: FTBFS: FAIL: test_missing_name (test.test_cookies.CookieTests.test_missing_name)
    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 owner@bugs.debian.org
    immediately.)


    --
    1106440: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106440
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 24 May 2025 16:40:21 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-121.4 required=4.0 tests=ALL_TRUSTED,BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,HAS_PACKAGE,
    SPF_HELO_PASS,SPF_NONE,USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST,
    X_DEBBUGS_CC autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 92; hammy, 150; neutral, 316; spammy,
    0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--trixie,
    0.000-+--pkgbuilddir, 0.000-+--PKGBUILDDIR, 0.000-+--sk:dh_auto Return-path: <sanvila@debian.org>
    Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52c3:4b