• Bug#1064017: python-requests-unixsocket: Please run python-requests-uni

    From Olivier Gayot@21:1/5 to All on Thu Feb 15 20:40:01 2024
    This is a multi-part MIME message sent by reportbug.


    Package: python-requests-unixsocket
    Severity: wishlist
    Tags: patch
    User: ubuntu-devel@lists.ubuntu.com
    Usertags: origin-ubuntu noble ubuntu-patch

    Dear Maintainer,

    The recent migration of urllib3 and src:requests broke python-requests-unixsocket (see bug 1063892 [1]). This could have been
    easily noticed if request_unisocket's test-suite had run as an autopkg
    test.

    python-requests-unixsocket does not use pybuild so I came up with a
    small d/t/control + d/t/python3-requests-unixsocket to make the
    test-suite run during autopkgtest execution.

    In Ubuntu, the attached patch was applied to achieve the following:

    * Execute test-suite as part of autopkgtest (LP: #2053267)

    Thanks for considering the patch.

    [1] https://bugs.debian.org/1063892

    -- System Information:
    Debian Release: trixie/sid
    APT prefers mantic-updates
    APT policy: (500, 'mantic-updates'), (500, 'mantic-security'), (500, 'mantic'), (100, 'mantic-backports')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.1.0-16-generic (SMP w/8 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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

    diff -Nru python-requests-unixsocket-0.3.0/debian/tests/control python-requests-unixsocket-0.3.0/debian/tests/control
    --- python-requests-unixsocket-0.3.0/debian/tests/control 1970-01-01 01:00:00.000000000 +0100
    +++ python-requests-unixsocket-0.3.0/debian/tests/control 2024-02-15 19:59:04.000000000 +0100
    @@ -0,0 +1,2 @@
    +Tests: python3-requests-unixsocket
    +Depends: @, @builddeps@
    diff -Nru python-requests-unixsocket-0.3.0/debian/tests/python3-requests-unixsocket python-requests-unixsocket-0.3.0/debian/tests/python3-requests-unixsocket
    --- python-requests-unixsocket-0.3.0/debian/tests/python3-requests-unixsocket 1970-01-01 01:00:00.000000000 +0100
    +++ python-requests-unixsocket-0.3.0/debian/tests/python3-requests-unixsocket 2024-02-15 19:59:02.000000000 +0100
    @@ -0,0 +1,13 @@
    +#!/bin/bash
    +
    +set -efu
    +
    +python3_all="$(py3versions -s 2>/dev/null)"
    +
    +cp -r requests_unixsocket/tests "$AUTOPKGTEST_TMP/"
    +cd "$AUTOPKGTEST_TMP"
    +
    +for py in $python3_all; do
    + echo "=== $py ==="
    + $py -m pytest --verbose 2>&1
    +done

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)