--- Begin Message ---
Source: sphinx-testing
Version: 1.0.1-0.1
Severity: serious
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: needs-update
User: debian-pyt...@lists.debian.org
Usertags: python3.11
Control: affects -1 src:python3-defaults
Dear maintainer(s),
We are in the transition of adding python3.11 as a supported Python
version [0]. With a recent upload of python3-defaults the autopkgtest of
sphinx-testing fails in testing when that autopkgtest is run with the
binary packages of python3-defaults from unstable. It passes when run
with only packages from testing. In tabular form:
pass fail
python3-defaults from testing 3.10.6-3
sphinx-testing from testing 1.0.1-0.1
all others from testing from testing
I copied some of the output at the bottom of this report.
Currently this regression is blocking the migration of python3-defaults
to testing [1]. https://docs.python.org/3/whatsnew/3.11.html lists
what's new in Python3.11, it may help to identify what needs to be updated.
More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation
Paul
[0] https://bugs.debian.org/1021984
[1] https://qa.debian.org/excuses.php?package=python3-defaults
https://ci.debian.net/data/autopkgtest/testing/amd64/s/sphinx-testing/28796440/log.gz
/usr/lib/python3/dist-packages/babel/messages/catalog.py:13:
DeprecationWarning: 'cgi' is deprecated and slated for removal in Python
3.13
from cgi import parse_header
test_abspath (test_path.TestPath.test_abspath) ... ok
test_basename (test_path.TestPath.test_basename) ... ok
test_copytree (test_path.TestPath.test_copytree) ... ok
test_dirname (test_path.TestPath.test_dirname) ... ok
test_exists (test_path.TestPath.test_exists) ... ok
test_instantiate (test_path.TestPath.test_instantiate) ... ok
test_isabs (test_path.TestPath.test_isabs) ... ok
test_isdir (test_path.TestPath.test_isdir) ... ok
test_isfile (test_path.TestPath.test_isfile) ... ok
test_islink (test_path.TestPath.test_islink) ... ok
test_ismount (test_path.TestPath.test_ismount) ... ok
test_jonpath (test_path.TestPath.test_jonpath) ... ok
test_listdir (test_path.TestPath.test_listdir) ... ok
test_makedirs (test_path.TestPath.test_makedirs) ... ok
test_move (test_path.TestPath.test_move) ... ok
test_read_bytes (test_path.TestPath.test_read_bytes) ... ok
test_read_text (test_path.TestPath.test_read_text) ... ERROR
test_rmtree (test_path.TestPath.test_rmtree) ... ok
test_suffix (test_path.TestPath.test_suffix) ... ok
test_unlink (test_path.TestPath.test_unlink) ... ok
test_utime (test_path.TestPath.test_utime) ... ok
test_write_bytes (test_path.TestPath.test_write_bytes) ...
/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_path.py:226:
ResourceWarning: unclosed file <_io.BufferedReader
name='/tmp/tmpkuvdvjne/test.file'>
text = open(filename, 'rb').read()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_write_text (test_path.TestPath.test_write_text) ...
/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_path.py:210:
ResourceWarning: unclosed file <_io.TextIOWrapper
name='/tmp/tmp4l6oluer/test.file' mode='r' encoding='UTF-8'>
text = open(filename).read()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_mkdtemp (test_tmpdir.TestTmpdir.test_mkdtemp) ... ok
test_with_tmpdir (test_tmpdir.TestTmpdir.test_with_tmpdir) ... ok
test_TestApp (test_util.TestSphinxTesting.test_TestApp) ...
/usr/lib/python3/dist-packages/sphinx/util/images.py:4:
DeprecationWarning: 'imghdr' is deprecated and slated for removal in
Python 3.13
import imghdr
ok
test_TestApp_cleanup (test_util.TestSphinxTesting.test_TestApp_cleanup)
... ok
test_TestApp_cleanup_when_cleanup_on_errors
(test_util.TestSphinxTesting.test_TestApp_cleanup_when_cleanup_on_errors)
... ok
test_TestApp_when_copy_srcdir_to_tmpdir
(test_util.TestSphinxTesting.test_TestApp_when_copy_srcdir_to_tmpdir)
... ERROR
test_TestApp_when_create_new_srcdir
(test_util.TestSphinxTesting.test_TestApp_when_create_new_srcdir) ... ERROR
test_TestApp_when_srcdir_and_create_new_srcdir_conflict
(test_util.TestSphinxTesting.test_TestApp_when_srcdir_and_create_new_srcdir_conflict)
... ok
test_TestApp_when_srcdir_is_None
(test_util.TestSphinxTesting.test_TestApp_when_srcdir_is_None) ... ok
test_TestApp_when_srcdir_specified
(test_util.TestSphinxTesting.test_TestApp_when_srcdir_specified) ... ERROR
test_with_app (test_util.TestSphinxTesting.test_with_app) ... ok
test_with_app_bad_args
(test_util.TestSphinxTesting.test_with_app_bad_args) ... ok
test_with_app_return_value
(test_util.TestSphinxTesting.test_with_app_return_value) ... ok
test_with_app_write_docstring
(test_util.TestSphinxTesting.test_with_app_write_docstring) ... ERROR
test_with_app_write_docstring_by_name
(test_util.TestSphinxTesting.test_with_app_write_docstring_by_name) ...
ERROR
test_with_app_write_docstring_with_master_doc
(test_util.TestSphinxTesting.test_with_app_write_docstring_with_master_doc)
... ERROR
test_with_app_write_docstring_with_source_suffix
(test_util.TestSphinxTesting.test_with_app_write_docstring_with_source_suffix)
... ERROR
======================================================================
ERROR: test_read_text (test_path.TestPath.test_read_text)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sphinx_testing/tmpdir.py", line
30, in decorator
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_path.py",
line 219, in test_read_text
self.assertEqual('hello world', path(filename).read_text())
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sphinx_testing/path.py", line
159, in read_text
f = open(self, mode='U', **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen codecs>", line 906, in open
ValueError: invalid mode: 'U'
======================================================================
ERROR: test_TestApp_when_copy_srcdir_to_tmpdir
(test_util.TestSphinxTesting.test_TestApp_when_copy_srcdir_to_tmpdir)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_util.py",
line 85, in test_TestApp_when_copy_srcdir_to_tmpdir
self.assertEqual((srcdir / 'conf.py').read_text(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sphinx_testing/path.py", line
159, in read_text
f = open(self, mode='U', **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen codecs>", line 906, in open
ValueError: invalid mode: 'U'
======================================================================
ERROR: test_TestApp_when_create_new_srcdir
(test_util.TestSphinxTesting.test_TestApp_when_create_new_srcdir)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_util.py",
line 68, in test_TestApp_when_create_new_srcdir
self.assertEqual('', (app.srcdir / 'conf.py').read_text())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sphinx_testing/path.py", line
159, in read_text
f = open(self, mode='U', **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen codecs>", line 906, in open
ValueError: invalid mode: 'U'
======================================================================
ERROR: test_TestApp_when_srcdir_specified
(test_util.TestSphinxTesting.test_TestApp_when_srcdir_specified)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_util.py",
line 50, in test_TestApp_when_srcdir_specified
self.assertEqual((srcdir / 'conf.py').read_text(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sphinx_testing/path.py", line
159, in read_text
f = open(self, mode='U', **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen codecs>", line 906, in open
ValueError: invalid mode: 'U'
======================================================================
ERROR: test_with_app_write_docstring
(test_util.TestSphinxTesting.test_with_app_write_docstring)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_util.py",
line 175, in test_with_app_write_docstring
execute()
File "/usr/lib/python3/dist-packages/sphinx_testing/util.py", line
171, in decorator
return func(*(args + (app, status, warning)), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_util.py",
line 173, in execute
self.assertEqual('Hello world ', master_doc.read_text())
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sphinx_testing/path.py", line
159, in read_text
f = open(self, mode='U', **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen codecs>", line 906, in open
ValueError: invalid mode: 'U'
======================================================================
ERROR: test_with_app_write_docstring_by_name
(test_util.TestSphinxTesting.test_with_app_write_docstring_by_name)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_util.py",
line 204, in test_with_app_write_docstring_by_name
execute()
File "/usr/lib/python3/dist-packages/sphinx_testing/util.py", line
171, in decorator
return func(*(args + (app, status, warning)), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_util.py",
line 201, in execute
content = (app.srcdir / 'hello.rst').read_text()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sphinx_testing/path.py", line
159, in read_text
f = open(self, mode='U', **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen codecs>", line 906, in open
ValueError: invalid mode: 'U'
======================================================================
ERROR: test_with_app_write_docstring_with_master_doc
(test_util.TestSphinxTesting.test_with_app_write_docstring_with_master_doc)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_util.py",
line 185, in test_with_app_write_docstring_with_master_doc
execute()
File "/usr/lib/python3/dist-packages/sphinx_testing/util.py", line
171, in decorator
return func(*(args + (app, status, warning)), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_util.py",
line 182, in execute
content = (app.srcdir / 'index.rst').read_text()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sphinx_testing/path.py", line
159, in read_text
f = open(self, mode='U', **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen codecs>", line 906, in open
ValueError: invalid mode: 'U'
======================================================================
ERROR: test_with_app_write_docstring_with_source_suffix
(test_util.TestSphinxTesting.test_with_app_write_docstring_with_source_suffix)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_util.py",
line 195, in test_with_app_write_docstring_with_source_suffix
execute()
File "/usr/lib/python3/dist-packages/sphinx_testing/util.py", line
171, in decorator
return func(*(args + (app, status, warning)), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_util.py",
line 193, in execute
self.assertEqual('Hello world ', master_doc.read_text())
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sphinx_testing/path.py", line
159, in read_text
f = open(self, mode='U', **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen codecs>", line 906, in open
ValueError: invalid mode: 'U'
----------------------------------------------------------------------
Ran 40 tests in 0.764s
FAILED (errors=8)
test_abspath (test_path.TestPath) ... ok
test_basename (test_path.TestPath) ... ok
test_copytree (test_path.TestPath) ... ok
test_dirname (test_path.TestPath) ... ok
test_exists (test_path.TestPath) ... ok
test_instantiate (test_path.TestPath) ... ok
test_isabs (test_path.TestPath) ... ok
test_isdir (test_path.TestPath) ... ok
test_isfile (test_path.TestPath) ... ok
test_islink (test_path.TestPath) ... ok
test_ismount (test_path.TestPath) ... ok
test_jonpath (test_path.TestPath) ... ok
test_listdir (test_path.TestPath) ... ok
test_makedirs (test_path.TestPath) ... ok
test_move (test_path.TestPath) ... ok
test_read_bytes (test_path.TestPath) ... ok
test_read_text (test_path.TestPath) ...
/usr/lib/python3.10/codecs.py:905: DeprecationWarning: 'U' mode is
deprecated
file = builtins.open(filename, mode, buffering)
ok
test_rmtree (test_path.TestPath) ... ok
test_suffix (test_path.TestPath) ... ok
test_unlink (test_path.TestPath) ... ok
test_utime (test_path.TestPath) ... ok
test_write_bytes (test_path.TestPath) ...
/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_path.py:226:
ResourceWarning: unclosed file <_io.BufferedReader
name='/tmp/tmpeqgisfrh/test.file'>
text = open(filename, 'rb').read()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_write_text (test_path.TestPath) ...
/tmp/autopkgtest-lxc.yr0akpjp/downtmp/autopkgtest_tmp/tests/test_path.py:210:
ResourceWarning: unclosed file <_io.TextIOWrapper
name='/tmp/tmpxhu1nmug/test.file' mode='r' encoding='UTF-8'>
text = open(filename).read()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_mkdtemp (test_tmpdir.TestTmpdir) ... ok
test_with_tmpdir (test_tmpdir.TestTmpdir) ... ok
test_TestApp (test_util.TestSphinxTesting) ... ok
test_TestApp_cleanup (test_util.TestSphinxTesting) ... ok
test_TestApp_cleanup_when_cleanup_on_errors
(test_util.TestSphinxTesting) ... ok
test_TestApp_when_copy_srcdir_to_tmpdir (test_util.TestSphinxTesting)
... /usr/lib/python3.10/codecs.py:905: DeprecationWarning: 'U' mode is
deprecated
file = builtins.open(filename, mode, buffering)
ok
test_TestApp_when_create_new_srcdir (test_util.TestSphinxTesting) ... ok
test_TestApp_when_srcdir_and_create_new_srcdir_conflict
(test_util.TestSphinxTesting) ... ok
test_TestApp_when_srcdir_is_None (test_util.TestSphinxTesting) ... ok
test_TestApp_when_srcdir_specified (test_util.TestSphinxTesting) ... ok
test_with_app (test_util.TestSphinxTesting) ... ok
test_with_app_bad_args (test_util.TestSphinxTesting) ... ok
test_with_app_return_value (test_util.TestSphinxTesting) ... ok
test_with_app_write_docstring (test_util.TestSphinxTesting) ... ok
test_with_app_write_docstring_by_name (test_util.TestSphinxTesting) ... ok
test_with_app_write_docstring_with_master_doc
(test_util.TestSphinxTesting) ... ok
test_with_app_write_docstring_with_source_suffix
(test_util.TestSphinxTesting) ... ok
----------------------------------------------------------------------
Ran 40 tests in 0.884s
OK
autopkgtest [01:16:50]: test python3-sphinx-testing
OpenPGP_signature
Description: OpenPGP digital signature
--- End Message ---