#1149528 python-scrapy: Flaky test_closespider_pagecount_no_item

Package:
src:python-scrapy
Source:
src:python-scrapy
Submitter:
Margarita Manterola
Date:
2026-10-01 20:45:01 UTC
Severity:
normal
Tags:
#1149528#5
Date:
2026-09-30 10:42:47 UTC
From:
To:
Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that python-scrapy fails to build from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4855316/

 From the log, the error seems to be:

=================================== FAILURES
===================================
E
E         - closespider_pagecount_no_item
E         + finished

tests/test_closespider.py:53: AssertionError

Please note that while we ran into this error during the rebuild against
Python 3.15, that doesn't mean that the root cause for the failure is
necessarily the new Python version, but in this case it seems quite
likely, as the same test succeeds on Python 3.14 and fails on Python
3.15.

In order to build against the test archive, which includes not only
python3.15 but also all the relevant build-dependencies rebuilt against
it, you can add the test repository:

  deb http://deb.debusine.debian.net/debian/r-python-python3.15
sid-python3.15 main

The corresponding signing key can be seen in the first section of
https://deb.debusine.debian.net/debian/r-python-python3.15/

To build from a git repository, you can use something like:
  gbp buildpackage --no-clean-source --git-builder='sbuild
--no-run-lintian --extra-repository="deb 
http://deb.debusine.debian.net/debian/r-python-python3.15 sid-python3.15
main" --extra-repository-key="/path/to/signing-keys.asc"'

Setting the severity to important for now. Once Python 3.15 is released
and later added to python3-defaults, this bug will become release
critical.

#1149528#10
Date:
2026-09-30 11:06:06 UTC
From:
To:
Flaky test, not specific to 3.15, fixed in the latest (not yet packaged)
release.

#1149528#21
Date:
2026-09-30 11:12:59 UTC
From:
To:
Control: user debian-python@lists.debian.org
Control: usertag -1 python3.15

Alright, but please don't remove the usertag, as it helps us keep track
of the issues that we've filed vs those that we haven't filed yet.

Thanks.

#1149528#26
Date:
2026-10-01 20:42:45 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-scrapy, 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 1149528@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrey Rakhmatullin <wrar@debian.org> (supplier of updated python-scrapy 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: Fri, 02 Oct 2026 00:33:08 +0500
Source: python-scrapy
Architecture: source
Version: 2.19.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Andrey Rakhmatullin <wrar@debian.org>
Closes: 1149528
Changes:
 python-scrapy (2.19.0-1) unstable; urgency=medium
 .
   * New upstream version.
     + Fixes flaky test_closespider_pagecount_no_item (Closes: 1149528).
   * Add B-D: python3-aiohttp, python3-charset-normalizer, python3-platformdirs.
Checksums-Sha1:
 5b532e00a1bf1b8f31c6728958f484f978a2d807 3904 python-scrapy_2.19.0-1.dsc
 4873bf5db95f3df3849e6db224b72233a8dfecc0 1510966 python-scrapy_2.19.0.orig.tar.gz
 5985c6f1c8d40b6d5268721fbee1ce05bed77151 11400 python-scrapy_2.19.0-1.debian.tar.xz
 1eb522920dc5fc09582ad591b5b04417b2c2fee0 13364 python-scrapy_2.19.0-1_amd64.buildinfo
Checksums-Sha256:
 58c73e2b70f0a709b32857c469ea8d042851935b5b571f6b6a211819a2310a0a 3904 python-scrapy_2.19.0-1.dsc
 5a03cdea05cfbf17dd26b80c7a9eca7339d6c00492f196b3b08e93a5a226937c 1510966 python-scrapy_2.19.0.orig.tar.gz
 690d8233dbbdf6c8b04da8f91d99d7cbd56dc674169ea3232b498913cb36541a 11400 python-scrapy_2.19.0-1.debian.tar.xz
 50a82f121eed9be2232b154146a14689cda4ed636f31c643518488832b966026 13364 python-scrapy_2.19.0-1_amd64.buildinfo
Files:
 ab8a3007f87c1510d5907ea8a3026bec 3904 python optional python-scrapy_2.19.0-1.dsc
 93b3692b5eabc320187f7642e3812811 1510966 python optional python-scrapy_2.19.0.orig.tar.gz
 02635d61af5f3059d0e0ff0512575ab1 11400 python optional python-scrapy_2.19.0-1.debian.tar.xz
 e50bc1e6740191ebfb45086790a7860c 13364 python optional python-scrapy_2.19.0-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmq+uIMACgkQM2L3AxpJ
kuERKQ//ftXXNn6hFxd2LRlk5E33H1Evxurju1C29c7Y4gk7rTqOzXYvESOU1mMG
eWk4Wno17ahvrMz0svV3kAJ44dF+6yI8dKxdew8DA95cZgJXr/ICRcilk6HGaQfi
+3/2VvbCOhDJlEpQ5Ndpn6UZ5BZD9Z/pfKV0e9w6UkHMveeIX91RO3plTVvAEhvM
e+9Sa5p5fQ3dtKs7aQIHCoIq0jkHDRIhN0YmR4yhqWnT7g2VSnR6wjVT1yTerY+r
MXW8sPPnuqdeEgnR7MCOuGuLrL+N+iC9SVU2GhQloNwRuIIqTbH9Vh+hd6WkCZR0
SuxvAfcU/3B4tbNiVgnZR6vVwPx4i4+gEBeCdDZHA69FdO56GSn2wY/zrgm9Yk7n
N62oab2HtZOwD8nOYh9BK91FBGyd0Hs/9pVOlopHm+s94YiT/alXvk5yjcBoITmW
F9BviA0Aw37A1Ywi97gETHhIi/eQtBFSzIyWMQKBPSLrnpaDB3kONdwYloRVFA/r
HyzFGH4lqWp94lxLIGSUfH/BqbgRF4OxUOrErAiEyo8qB5Fc6PDHcND6z/9x11fH
U+PJjZi3xKFw+3BqsMou1M/ZkecO1/LaGQDMHQGJCRBdBAVLN6U7vJEBkb8AYjvw
5+Xtb9hJObUvO9rHuFcCn8AEUR2G1kN/ikBm84zscqTcWiC0jn8=
=UIHh
-----END PGP SIGNATURE-----