Source: gunicorn
Version: 23.0.0-1
Severity: wishlist
Tags: patch
X-Debbugs-Cc: [email protected]

Dear Maintainer,
unit tests in gunicorn source package currently disabled, but this is actually 
undesirable.
We can see in sources of gunicorn package in file debian/rules:
https://salsa.debian.org/python-team/packages/gunicorn/-/blob/88b2f343a1e8c5acfc4eac92f0ca0abbb304241b/debian/rules#L20
```
override_dh_auto_test:
        # Tests require internet access.
```

This row was added 6 years ago:
https://salsa.debian.org/python-team/packages/gunicorn/-/commit/cf957693580bf1ef928231809c7561e61be6968d#8756c63497c8dc39f7773438edf53b220c773f67_20_17

Maybe 6 years ago it was justifiably, but in recent version of gunicorn it is 
not true.
Later in next message I will attach patch gunicorn-sid-enable-tests.patch.
I checked that after applying this patch onto version 23.0.0-1 of gunicorn test 
suite from package works in closed environment (without internet access).
Also it is possible to make such patch for version 20.1.0-6+deb12u1 from Debian 
Bookworm.
Probably I think it is possible to make tests suits work in versions of 
gunicorn from other Debian distributions.

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.11-1-generic (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Attachment: gunicorn-sid-enable-tests.patch
Description: application/mbox

Reply via email to