#1149528 python-scrapy: Flaky test_closespider_pagecount_no_item

#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.