#1108797 python-txrequests: autopkgtest regression: twisted.trial.unittest.FailTest: 200 != 404

#1108797#5
Date:
2025-07-05 09:05:54 UTC
From:
To:
Dear maintainer(s),

Your package has an autopkgtest, great. However, it fails since March
2025. Can you please investigate the situation and fix it? I copied some
of the output at the bottom of this report.

The release team has announced [1] that failing autopkgtest on amd64 and
arm64 are considered RC in testing.

More information about this bug and the reason for filing it can be
found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

With my Release Team member hat on I allow you to tag this bug as
trixie-ignore if this is nearly completely a test issue as it's so late
in the freeze and it's not worth removing the package from trixie
because of a failing test at this moment unless it exposes a much bigger
issue. Having said that, if this is a test only issue and a fix is
possible without fully removing the autopkgtest and without making the
test superficial, it's still welcome, but it would need to happen soon.

Paul

[1] https://lists.debian.org/debian-devel-announce/2019/07/msg00002.html

https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-txrequests/61933856/log.gz

  34s Testing with python3.13 in
/tmp/autopkgtest-lxc.eutn6gh5/downtmp/autopkgtest_tmp:
  35s test_max_workers (test_txrequests.RequestsTestCase.test_max_workers)
  35s Tests the `max_workers` shortcut. ... ok
  35s test_redirect (test_txrequests.RequestsTestCase.test_redirect)
  36s Tests for the ability to cleanly handle redirects. ... FAIL
  36s test_session (test_txrequests.RequestsTestCase.test_session)
  37s test_session ... ok
  37s runTest (twisted.trial._asynctest.TestCase.runTest)
  37s If no C{methodName} argument is passed to the constructor, L{run}
will ... ok
  37s
  37s ======================================================================
  37s FAIL: test_redirect (test_txrequests.RequestsTestCase.test_redirect)
  37s Tests for the ability to cleanly handle redirects.
  37s ----------------------------------------------------------------------
  37s Traceback (most recent call last):
  37s   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py",
line 2017, in _inlineCallbacks
  37s     result = context.run(gen.send, result)
  37s   File
"/tmp/autopkgtest-lxc.eutn6gh5/downtmp/autopkgtest_tmp/test_txrequests.py",
line 83, in test_redirect
  37s     self.assertEqual(200, resp.status_code)
  37s     ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  37s   File
"/usr/lib/python3/dist-packages/twisted/trial/_synctest.py", line 444,
in assertEqual
  37s     super().assertEqual(first, second, msg)
  37s     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  37s twisted.trial.unittest.FailTest: 200 != 404
  37s
  37s ----------------------------------------------------------------------
  37s Ran 4 tests in 2.728s
  37s
  37s FAILED (failures=1)
  38s autopkgtest [03:15:27]: test testsuite: -----------------------]

#1108797#8
Date:
2025-07-07 20:46:20 UTC
From:
To:
Hello,

Bug #1108797 in python-txrequests 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-txrequests/-/commit/34ee0e23c435e4e207f7588a85bb1575a71e162a
------------------------------------------------------------------------
Switch tests back to httpbin.org

Closes: #1108797
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1108797

#1108797#15
Date:
2025-07-07 21:09:05 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-txrequests, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1108797@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated python-txrequests package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 07 Jul 2025 21:44:24 +0100
Source: python-txrequests
Architecture: source
Version: 0.9.6-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1108797
Changes:
 python-txrequests (0.9.6-3) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Robin Jarry ]
   * d/control: fix vcs urls
 .
   [ Colin Watson ]
   * Switch tests back to httpbin.org (closes: #1108797).
Checksums-Sha1:
 b843f1304294277dd1364ae77e13c376f6f8ad97 2228 python-txrequests_0.9.6-3.dsc
 88be61c1827137b4a783cf0507187d281d48d595 2008 python-txrequests_0.9.6-3.debian.tar.xz
Checksums-Sha256:
 884ed78fa7bbedaba3f9ececfc73c8255373862d5b028f9375eaf4990c8b2b74 2228 python-txrequests_0.9.6-3.dsc
 45babc741ffa7bc484e0c0f9395ea129fe5ac24a311a0e5543f0c61976cc1b19 2008 python-txrequests_0.9.6-3.debian.tar.xz
Files:
 8057154825423fbf2f483456f9ac3e1f 2228 python optional python-txrequests_0.9.6-3.dsc
 9ed9ad1ae52b1611c0231227fa09e7f1 2008 python optional python-txrequests_0.9.6-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmhsMg8ACgkQOTWH2X2G
UAto7RAAlOkp/yunAn3cNXjkUEc+tEyD75Ft2MSDQTAxk/GGMgeJ5A9SiQ2vSE8O
aIbD9VsdTCWJ0dOioWHPKkENga9epAsYOIv8B4EUgRonnH3FBWnWm6TqSXi1qPgp
3xrr/LLbYQcaCKRXKHRtjYNMwyGeH+POBKtjdOCYjYFlaq4V2Ap5udj+1KUkzNGr
3Lc6ggbbRBgfuLI8onqszzEv4JcvROjGSMrQpjYd87IO0Q9+dvUqwnvInUWSM3MB
cqlBdszyidfKUkz4yXkzARy41z5lvtQCHRrZUoudu70WSNUj7JxK/LBUU+4CSzI7
6TD8dAhrvWa/4JMb+5SWaptWXzZruIZ/mvjop1eEjdRTQ/VCIt1bDNsHgTQpkIy2
JtfygDJJI8qI3UfU3CFtt9sbMQi+KCdunQyAANubpMjAKx6YJzhvW2QZsELZqzTu
Hn/jXdmR1obgqcZGOfGDfOnPNOgzQaUpHycSz9nPyVmf0AAcfS8nYOhuXkN813Kw
dpmybRpkDB3txnycEfTx/ESbiDlqZkJ//+JaGHoYGdyOPrKdPwM/U230swvz5PYp
wOq6f6K2ZiYmDPGF9zynZ/bCSPs72+SSjr3kwGMN/HdXj+iFonq343dvOy8mjfRo
uqxLigEKCYrxhY1QLvaIa5EOw4Hj7WAJdu+7dE9gDYAEWjgvSCc=
=Y8y/
-----END PGP SIGNATURE-----