Your message dated Mon, 09 Nov 2026 18:34:55 +0000
with message-id <[email protected]>
and subject line Bug#1145439: fixed in python-hypothesis 6.170.15+ds-1
has caused the Debian Bug report #1145439,
regarding python-hypothesis: FTBFS against python 3.15rc1
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1145439: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1145439
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:python-hypothesis
Version: 6.155.7-1
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Hi!
While rebuilding the python related packages against the Python 3.15rc1
version we found that python-hypothesis fails to build from source [1].
The problem has already been fixed upstream with [2], included in
v6.165.7.
I applied the upstream fix in the sandbox [3] to be able to build the
packages that depend on python-hypothesis, please consider applying the
patch to support the upcoming 3.15 version.
As a side note, the patch also applies to the version in salsa's
repository, but using that package also required us to finishing the
repackaging for the rust + maturin version (arch:all to arch:any, docs
need to be build explicitly, fix installation paths avoid installing in
usr/lib/python3.XX).
Happy hacking,
[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4436475/
[2]:
https://github.com/HypothesisWorks/hypothesis/commit/37999eb97e416a19881c3cc463f9f7a73623d0e7
[3]: https://debusine.debian.net/debian/r-python-python3.15/
--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
Description: claude: support Python 3.15
Backport upstream commit 37999eb97e416a19881c3cc463f9f7a73623d0e7:
Origin: backport, https://github.com/HypothesisWorks/hypothesis/commit/37999eb97e416a19881c3cc463f9f7a73623d0e7
Author: Liam DeVoe <[email protected]>
Index: python-hypothesis-6.155.7/hypothesis/src/hypothesis/internal/lambda_sources.py
===================================================================
--- python-hypothesis-6.155.7.orig/hypothesis/src/hypothesis/internal/lambda_sources.py
+++ python-hypothesis-6.155.7/hypothesis/src/hypothesis/internal/lambda_sources.py
@@ -9,6 +9,7 @@
# obtain one at https://mozilla.org/MPL/2.0/.
import ast
+import dis
import hashlib
import inspect
import linecache
@@ -101,12 +102,21 @@ def _function_key(f, *, bounded_size=Fal
class _op:
- # Opcodes, from dis.opmap. These may change between major versions.
- NOP = 9
- LOAD_FAST = 85
- LOAD_FAST_LOAD_FAST = 88
- LOAD_FAST_BORROW = 86
- LOAD_FAST_BORROW_LOAD_FAST_BORROW = 87
+ # Look up the opcode values dynamically, since they can change between versions. If
+ # the opcode does not exist on a version, we set it to None.
+ NOP = dis.opmap["NOP"]
+ LOAD_FAST = dis.opmap["LOAD_FAST"]
+ LOAD_FAST_LOAD_FAST = (
+ dis.opmap["LOAD_FAST_LOAD_FAST"] if sys.version_info[:2] >= (3, 13) else None
+ )
+ LOAD_FAST_BORROW = (
+ dis.opmap["LOAD_FAST_BORROW"] if sys.version_info[:2] >= (3, 14) else None
+ )
+ LOAD_FAST_BORROW_LOAD_FAST_BORROW = (
+ dis.opmap["LOAD_FAST_BORROW_LOAD_FAST_BORROW"]
+ if sys.version_info[:2] >= (3, 14)
+ else None
+ )
def _normalize_code(f, l):
@@ -129,6 +139,8 @@ def _normalize_code(f, l):
lambda a, b: a == [b[0] >> 4, b[0] & 15],
),
]
+ # Avoid applying any transform with an opcode that doesn't exist on this python version.
+ transforms = [t for t in transforms if None not in t[0] + t[1]]
# augment with converse
transforms += [
(
Index: python-hypothesis-6.155.7/hypothesis/src/hypothesis/internal/reflection.py
===================================================================
--- python-hypothesis-6.155.7.orig/hypothesis/src/hypothesis/internal/reflection.py
+++ python-hypothesis-6.155.7/hypothesis/src/hypothesis/internal/reflection.py
@@ -346,6 +346,13 @@ def source_exec_as_module(source: str) -
hexdigest = hashlib.sha384(source.encode()).hexdigest()
result = ModuleType("hypothesis_temporary_module_" + hexdigest)
+ # ModuleType() sets __spec__ = None. Later, we call @impersonate on functions defined
+ # in the module, which gives it a real co_filename. Python traceback formatting then
+ # calls internal linecache code which warns on the combination of "real on-disk file"
+ # + "null __spec__".
+ #
+ # Sidestep this by deleting __spec__; we don't need it.
+ del result.__spec__
assert isinstance(source, str)
exec(source, result.__dict__)
eval_cache[source] = result
Index: python-hypothesis-6.155.7/hypothesis/src/hypothesis/strategies/_internal/types.py
===================================================================
--- python-hypothesis-6.155.7.orig/hypothesis/src/hypothesis/strategies/_internal/types.py
+++ python-hypothesis-6.155.7/hypothesis/src/hypothesis/strategies/_internal/types.py
@@ -917,6 +917,12 @@ if sys.version_info[:2] < (3, 14):
_global_type_lookup[memoryview] = st.binary().map(memoryview)
+if sys.version_info[:2] >= (3, 15):
+ _global_type_lookup[builtins.sentinel] = st.builds( # type: ignore
+ builtins.sentinel, # type: ignore
+ st.text(),
+ )
+
_global_type_lookup.update(
{
Index: python-hypothesis-6.155.7/hypothesis/tests/cover/test_interactive_example.py
===================================================================
--- python-hypothesis-6.155.7.orig/hypothesis/tests/cover/test_interactive_example.py
+++ python-hypothesis-6.155.7/hypothesis/tests/cover/test_interactive_example.py
@@ -141,6 +141,9 @@ def test_script_example_does_not_emit_wa
@skipif_emscripten
@pytest.mark.skipif(WINDOWS, reason="pexpect.spawn not supported on Windows")
+# pexpect forks, and 3.15 warns about forking from a process with threads in it,
+# which we are under xdist.
[email protected]("ignore:.*is multi-threaded.*:DeprecationWarning")
def test_interactive_example_does_not_emit_warning():
import pexpect
Index: python-hypothesis-6.155.7/hypothesis/tests/cover/test_lookup.py
===================================================================
--- python-hypothesis-6.155.7.orig/hypothesis/tests/cover/test_lookup.py
+++ python-hypothesis-6.155.7/hypothesis/tests/cover/test_lookup.py
@@ -74,12 +74,9 @@ generics = sorted(
t
for t in types._global_type_lookup
# We ignore TypeVar, because it is not a Generic type:
- if isinstance(t, types.typing_root_type)
- and t != typing.TypeVar
- and (
- sys.version_info[:2] <= (3, 11)
- or t != getattr(typing, "ByteString", object())
- )
+ if isinstance(t, types.typing_root_type) and t != typing.TypeVar
+ # accessing ByteString warns on 3.15
+ and (not ((3, 12) <= sys.version_info[:2] < (3, 14)) or t != typing.ByteString)
),
key=str,
)
@@ -139,7 +136,8 @@ def test_typing_Type_Union(ex):
"typ",
[
pytest.param(
- getattr(collections.abc, "ByteString", ...),
+ # accessing ByteString warns on 3.15
+ collections.abc.ByteString if sys.version_info[:2] < (3, 14) else ...,
marks=pytest.mark.skipif(sys.version_info[:2] >= (3, 14), reason="removed"),
),
typing.Match,
--- End Message ---
--- Begin Message ---
Source: python-hypothesis
Source-Version: 6.170.15+ds-1
Done: Colin Watson <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-hypothesis, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Colin Watson <[email protected]> (supplier of updated python-hypothesis
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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 09 Nov 2026 16:36:23 +0000
Source: python-hypothesis
Architecture: source
Version: 6.170.15+ds-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Colin Watson <[email protected]>
Closes: 1145439
Changes:
python-hypothesis (6.170.15+ds-1) unstable; urgency=medium
.
* Team upload.
.
[ Timo Röhling ]
* New upstream version 6.165.5.
* Refresh patches (no functional changes).
* Switch from setuptools to maturin.
* Add build depend on rust toolchain.
.
[ Bastian Germann ]
* Build with Python 3.15 (closes: #1145439).
.
[ Colin Watson ]
* Exclude website/* from upstream tarballs.
* New upstream version 6.170.15+ds.
* Drop abi3t support until we have rust-pyo3 >= 0.29.0 in unstable.
* Install files into python3-hypothesis again.
* Use python3-libcst now that it's packaged.
* Fix documentation build.
* Skip another failing test.
* Make python3-hypothesis Architecture: any.
Checksums-Sha1:
6ab22416d481e6dbaaa3ce3324c0081e56783a75 3281
python-hypothesis_6.170.15+ds-1.dsc
6e2565c572dad12b6cc8a36a292c584be61331b0 9280220
python-hypothesis_6.170.15+ds.orig.tar.xz
372f8f634fddcfdefdd335f996dc1821e21eb050 17004
python-hypothesis_6.170.15+ds-1.debian.tar.xz
ee611843415559596912ba53fab71952b3cad3db 11242364
python-hypothesis_6.170.15+ds-1.git.tar.xz
a9a41877b3d3479e92603e22c905d0e05cf9b57a 17801
python-hypothesis_6.170.15+ds-1_source.buildinfo
Checksums-Sha256:
b94db6020b30cf076296adcc36db10570ded1a9d69e04f56211d4f6869e1d8fc 3281
python-hypothesis_6.170.15+ds-1.dsc
decdfe3e0ea08a30bec2c998ccebb8e20570d287c33d11a78fc24f4de43504d9 9280220
python-hypothesis_6.170.15+ds.orig.tar.xz
6db3d618e85156ab3444e4ca445dda9e01ec8fa82a51c66e8bacadb2f0ed39ee 17004
python-hypothesis_6.170.15+ds-1.debian.tar.xz
f043297da20694a766b06c378f853a0251fee587fbb835eb230cc22cb645160d 11242364
python-hypothesis_6.170.15+ds-1.git.tar.xz
b02fc0bdb24d8f8f3c2c6939f197e75497c951c74e0b192cc5bac9b866c7ebcf 17801
python-hypothesis_6.170.15+ds-1_source.buildinfo
Files:
3b6710f9775791347343c06948ceda1a 3281 python optional
python-hypothesis_6.170.15+ds-1.dsc
d7563c63548331a834081601352f0cd6 9280220 python optional
python-hypothesis_6.170.15+ds.orig.tar.xz
528476d3aaf32b263ea29cac90dcc5ef 17004 python optional
python-hypothesis_6.170.15+ds-1.debian.tar.xz
1d043da797c77ef5ca3b89697d05aac9 11242364 python optional
python-hypothesis_6.170.15+ds-1.git.tar.xz
47b434682e830abd5995a75c2b820ec8 17801 python optional
python-hypothesis_6.170.15+ds-1_source.buildinfo
Git-Tag-Info: tag=a5f4d13b9455cc8775683669bcd4d7ebd3f4d231
fp=ac0a4ff12611b6fccf01c111393587d97d86500b
Git-Tag-Tagger: Colin Watson <[email protected]>
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmryDs8ACgkQYG0ITkaD
wHmkBw/8C25MJFwvcy5LQ75a2Tu/dXFIKZeNHlbslpAd4HXeEhx5l5FSh+aBY522
LwPIve171qZXGjexdqWw0By88r/OR/4o/m9CbEeCdBbI/QqRzIv5d6FSMQj9GG2B
/NR84mkfDX0ghmJhbHArXS3xw+1NntBH+ETI6WqeBCwXqTNQ1LsK3zkUz1ftpwcM
n9eifKRzDwt4dYDEL6hhz0iNqs1sqYYVMGzpF9YpQ/h0YceGkMQTtcNydUuHc/4s
G8R6Xx/UUoaEu/8BhONuWRZ9NGzWLDDBJf3FYd4Hns80c/xo83L7JtxOMVlNXsfo
6VKIycoN1/QfTItD3ULY0jFzOsJzpKihmE2HeTQcvQX2QlSLZsPGguEVPMHkEAxs
KGoMOYBE7sAJnXUZKHsIz3xJFjxKrISOW3W8+6BaDq/eHyAXc+m8UfTo9FL1o1Z3
TjbOJbIeA9+1UaujB8867T9gnv0m2YyDaAV4SQZc1d+vYh5j0FXpbS2WQieZyXjr
4pJ+gsISSGOEHnU5oC1KICrB8VqYoickX7y9bCHE9yEhbG3MjK786CbSywDn/xfX
3+D23S6XrDnUcm1+qZMTNMPKHyQBFYXfN5SRSdrNm4nUGV/ZOlozlejvxtBWHrW1
5TFw1hIolVPdHIEhAJDUB9dRXCSsdgdutRF6TQUbJ2bUtNu7EVQ=
=wQJx
-----END PGP SIGNATURE-----
pgp4o8NG38mzB.pgp
Description: PGP signature
--- End Message ---