Package: python3.11
Version: 3.11.1-2
Severity: important
X-Debbugs-Cc: jcris...@debian.org
Tags: upstream fixed-upstream
Forwarded: https://github.com/python/cpython/issues/99433
Control: affects -1 mercurial

Hi,

python3.11 breaks mercurial's test-doctest.py with:

--- 
/tmp/autopkgtest-lxc.jj0p4qad/downtmp/build.aoZ/src/tests/test-doctest.py.out
+++ 
/tmp/autopkgtest-lxc.jj0p4qad/downtmp/build.aoZ/src/tests/test-doctest.py.err
@@ -0,0 +1,14 @@
+Traceback (most recent call last):
+  File 
"/tmp/autopkgtest-lxc.jj0p4qad/downtmp/build.aoZ/src/tests/test-doctest.py", 
line 116, in <module>
+    testmod(modname, **kwargs)
+  File 
"/tmp/autopkgtest-lxc.jj0p4qad/downtmp/build.aoZ/src/tests/test-doctest.py", 
line 46, in testmod
+    for test in finder.find(mod, name):
+                ^^^^^^^^^^^^^^^^^^^^^^
+  File "/usr/lib/python3.11/doctest.py", line 940, in find
+    self._find(tests, obj, name, module, source_lines, globs, {})
+  File "/usr/lib/python3.11/doctest.py", line 1012, in _find
+    self._from_module(module, val)):
+    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  File "/usr/lib/python3.11/doctest.py", line 974, in _from_module
+    raise ValueError("object must be a class or function")
+ValueError: object must be a class or function

ERROR: test-doctest.py output changed

Looks like this was fixed in 3.11.2 with 
https://github.com/python/cpython/commit/c88a83e7d81fbf394bbdebe0f453bb64bdf33ba6

Cheers,
Julien

Reply via email to