#1122914 python-txrequests: flaky autopkgtest: twisted.trial.unittest.FailTest: 200 != 503

#1122914#5
Date:
2025-12-14 15:21:39 UTC
From:
To:
Dear maintainer(s),

I looked at the results of the autopkgtest of your package because it
showed up as a regression for twisted. I noticed that it regularly
fails. I scheduled 5 runs on amd64 in testing, they all failed.

Because the unstable-to-testing migration software now blocks on
regressions in testing, flaky tests, i.e. tests that flip between
passing and failing without changes to the list of installed packages,
are causing people unrelated to your package to spend time on these
tests.

Don't hesitate to reach out if you need help and some more information
from our infrastructure.

Paul

https://ci.debian.net/packages/p/python-txrequests/testing/amd64/67075950/


  34s ======================================================================
  34s FAIL: test_redirect (test_txrequests.RequestsTestCase.test_redirect)
  34s Tests for the ability to cleanly handle redirects.
  34s ----------------------------------------------------------------------
  34s Traceback (most recent call last):
  34s   File
"/usr/lib/python3/dist-packages/twisted/trial/_asynctest.py", line 173,
in _deferSetUpAndRun
  34s     await self._run(
  34s         getattr(self, self._testMethodName), self._testMethodName,
result
  34s     )
  34s   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py",
line 1187, in __iter__
  34s     yield self
  34s   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py",
line 1857, in _inlineCallbacks
  34s     result = context.run(gen.send, result)
  34s   File
"/tmp/autopkgtest-lxc.0q_8cmnp/downtmp/autopkgtest_tmp/test_txrequests.py",
line 83, in test_redirect
  34s     self.assertEqual(200, resp.status_code)
  34s     ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  34s   File
"/usr/lib/python3/dist-packages/twisted/trial/_synctest.py", line 444,
in assertEqual
  34s     super().assertEqual(first, second, msg)
  34s     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  34s twisted.trial.unittest.FailTest: 200 != 503
  34s
  34s ======================================================================
  34s FAIL: test_session (test_txrequests.RequestsTestCase.test_session)
  34s test_session
  34s ----------------------------------------------------------------------
  34s Traceback (most recent call last):
  34s   File
"/usr/lib/python3/dist-packages/twisted/trial/_asynctest.py", line 173,
in _deferSetUpAndRun
  34s     await self._run(
  34s         getattr(self, self._testMethodName), self._testMethodName,
result
  34s     )
  34s   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py",
line 1187, in __iter__
  34s     yield self
  34s   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py",
line 1857, in _inlineCallbacks
  34s     result = context.run(gen.send, result)
  34s   File
"/tmp/autopkgtest-lxc.0q_8cmnp/downtmp/autopkgtest_tmp/test_txrequests.py",
line 29, in test_session
  34s     self.assertEqual(200, resp.status_code)
  34s     ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  34s   File
"/usr/lib/python3/dist-packages/twisted/trial/_synctest.py", line 444,
in assertEqual
  34s     super().assertEqual(first, second, msg)
  34s     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  34s twisted.trial.unittest.FailTest: 200 != 503

#1122914#8
Date:
2026-05-17 14:17:08 UTC
From:
To:
Hello,

Bug #1122914 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/2f4acf656fd0a5cfd3311cc2213ae8ca057b6c9d
------------------------------------------------------------------------
Use a local httpbin instance in tests

Closes: #1122914
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1122914

#1122914#15
Date:
2026-05-17 14:36:47 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 1122914@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: Sun, 17 May 2026 15:16:50 +0100
Source: python-txrequests
Architecture: source
Version: 0.9.6-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1122914
Changes:
 python-txrequests (0.9.6-4) unstable; urgency=medium
 .
   * Team upload.
   * Use a local httpbin instance in tests (closes: #1122914).
   * Use dh-sequence-python3.
   * Use pybuild-plugin-pyproject.
   * Run tests during package build.
   * Switch to autopkgtest-pkg-pybuild.
   * 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.
Checksums-Sha1:
 b58917fbefdebe69f0c2e4e7f41c5caf2797eb0d 2490 python-txrequests_0.9.6-4.dsc
 e324e6a5f6dbcc54b274d64de65a123c0284db83 2900 python-txrequests_0.9.6-4.debian.tar.xz
 01a04fc57da33ce2805d0f7cb6604488069b0cde 25688 python-txrequests_0.9.6-4.git.tar.xz
 9ca07c967b15f0b59615cfad400eb878b78fe60d 17388 python-txrequests_0.9.6-4_source.buildinfo
Checksums-Sha256:
 bf702ea50ba41ab2f56c31037473f52a67d04d5447f023f98828068eedb0dbf8 2490 python-txrequests_0.9.6-4.dsc
 99129fd7ed055ae9475d29f95670b2c88cc1fd424ea7444719561dc02f0a38b6 2900 python-txrequests_0.9.6-4.debian.tar.xz
 9d728882f6099793c970e656cfc4162e7dc706b3ff1a4b78ebfdd034c40da913 25688 python-txrequests_0.9.6-4.git.tar.xz
 4d403bd372a34976552b6404f34fd21632e145dcb24b5bb93a0ced933972d616 17388 python-txrequests_0.9.6-4_source.buildinfo
Files:
 168f9ba8d3e66fcf426a6f22d8714d15 2490 python optional python-txrequests_0.9.6-4.dsc
 c1f9b04095fa193295efd1bf7930e8f1 2900 python optional python-txrequests_0.9.6-4.debian.tar.xz
 c35f1890db2ac52e82085cecdadbee4a 25688 python None python-txrequests_0.9.6-4.git.tar.xz
 15d1484228874d9130d0645359bcbeb9 17388 python optional python-txrequests_0.9.6-4_source.buildinfo
Git-Tag-Info: tag=a81f815a12aaaa64011020a6ba6bee5f5ed6089c fp=ac0a4ff12611b6fccf01c111393587d97d86500b
Git-Tag-Tagger: Colin Watson <cjwatson@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmoJziIACgkQYG0ITkaD
wHmeHRAAxDLpI6dk5g/4I0gPshD11jn/vpwjVR/17yXQnfexED7EPxIDy+nF2Iym
xiNXvtQX4a8cWSTYPSb9hw32i03hppD4N41fh3RDSjjcmFiWuiEsxYRG/L3ijdVJ
uKZD6Uy0yG2Pa0octg2IgV/gKv7gJ3i+GYR8j4M9hr80bPZJZOaKi9ljI8Av82N6
c2yoto07lwNcuSY7dMCMR9u55sTb1YyrHmWx6dc2Q5F18+iP0rpMHq6T+H8KvR1J
VyhqAlXZjEMk2FHcU7+fxM2uOeYEtq9cjQnC0/j081+9GK7VboH9gedi0RCSuPNn
5DDRWuwYabA+63vCG52kUV5DGUb311iU7uyvMG/9hKtnvq5tCs8y5OZEFAaK+xiQ
L1m5t4jj/lk7W1Y86Uyn8x30VkPN8vRdD+84RsjbKFgZPL2qtwNlftGQFZcN8OIG
o/mvFRmV90mLD957GimYcyEDKOoIXOJUiC7KOAwurE69TYJgY5UyXr0o1RvSusA7
iRqF67w3TiXATD8yxajdZf131c1q7mVKl/d914wmRXxOgLcvu44Szag05C/7KtTT
ZieliulmFzPSv4BVaiymKeLenBotRjejNz7GUd4b6nTUXBauwsYCs9XZkiNhjOG5
Auqq1iI7x8Ci63TW0ZYfy+g+T9UJMGgb5eWXLE2agz3qnKMPpz8=
=kqha
-----END PGP SIGNATURE-----