Bug#1025029: python-docutils: (autopkgtest) needs update for python3.11: 'NoneType' object is not subscriptable

2022-11-29 Thread Dmitry Shachnev
Hi Stuart!

On Wed, Nov 30, 2022 at 12:36:29AM +1100, Stuart Prescott wrote:
> Version: 0.19+dfsg-2
>
> The failing test in python-docutils in sid is fixed in the version in
> experimental. Can the 0.19 release be uploaded to sid, or does the fix need
> to be backported?

Unfortunately this is blocked by sphinx-rtd-theme which still does not
support docutils 0.18 or 0.19:

- https://github.com/readthedocs/sphinx_rtd_theme/issues/1302
- https://github.com/readthedocs/sphinx_rtd_theme/issues/1322
- https://github.com/readthedocs/sphinx_rtd_theme/pull/1336
- https://github.com/readthedocs/sphinx_rtd_theme/pull/1381

(Also blocked by Sphinx, but it's blocked by sphinx-rtd-theme too.)

I will try to identify fixes and cherry-pick them to 0.18.

--
Dmitry Shachnev


signature.asc
Description: PGP signature


Bug#1025029: python-docutils: (autopkgtest) needs update for python3.11: 'NoneType' object is not subscriptable

2022-11-28 Thread Paul Gevers

Source: python-docutils
Version: 0.17.1+dfsg-2
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 
python-docutils 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:


   passfail
python3-defaults   from testing3.10.6-3
python-docutilsfrom testing0.17.1+dfsg-2
all others from testingfrom 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/p/python-docutils/28728887/log.gz

/tmp/autopkgtest-lxc.7f33ovby/downtmp/autopkgtest_tmp/test/test_parsers/test_recommonmark/test_section_headers.py:37: 
DeprecationWarning: invalid escape sequence '\ '

  """\
/tmp/autopkgtest-lxc.7f33ovby/downtmp/autopkgtest_tmp/test/test_parsers/test_recommonmark/test_section_headers.py:50: 
DeprecationWarning: invalid escape sequence '\ '

  """\
/tmp/autopkgtest-lxc.7f33ovby/downtmp/autopkgtest_tmp/test/test_parsers/test_recommonmark/test_section_headers.py:164: 
DeprecationWarning: invalid escape sequence '\ '

  """\
Traceback (most recent call last):
  File 
"/tmp/autopkgtest-lxc.7f33ovby/downtmp/autopkgtest_tmp/test/./alltests.py", 
line 88, in 

suite = suite()
^^^
  File 
"/tmp/autopkgtest-lxc.7f33ovby/downtmp/autopkgtest_tmp/test/./alltests.py", 
line 78, in suite

suite = package_unittest.loadTestModules(DocutilsTestSupport.testroot,
^^
  File 
"/tmp/autopkgtest-lxc.7f33ovby/downtmp/autopkgtest_tmp/test/package_unittest.py", 
line 102, in loadTestModules

module = import_module(mod)
 ^^
  File 
"/tmp/autopkgtest-lxc.7f33ovby/downtmp/autopkgtest_tmp/test/package_unittest.py", 
line 133, in import_module

mod = __import__(name)
  
  File 
"/tmp/autopkgtest-lxc.7f33ovby/downtmp/autopkgtest_tmp/test/test_parsers/test_rst/test_directives/test_tables.py", 
line 67, in 
null_bytes_exception = 
DocutilsTestSupport.exception_data(null_bytes)[0]


~~^^^
TypeError: 'NoneType' object is not subscriptable
/tmp/autopkgtest-lxc.7f33ovby/downtmp/autopkgtest_tmp/test/test_parsers/test_recommonmark/test_section_headers.py:37: 
DeprecationWarning: invalid escape sequence '\ '

  """\
/tmp/autopkgtest-lxc.7f33ovby/downtmp/autopkgtest_tmp/test/test_parsers/test_recommonmark/test_section_headers.py:50: 
DeprecationWarning: invalid escape sequence '\ '

  """\
/tmp/autopkgtest-lxc.7f33ovby/downtmp/autopkgtest_tmp/test/test_parsers/test_recommonmark/test_section_headers.py:164: 
DeprecationWarning: invalid escape sequence '\ '

  """\
Testing Docutils 0.17.1 with Python 3.10.8 on 2022-11-27 at 23:02:34
OS: Linux 5.10.0-19-cloud-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) 
(linux, Linux-5.10.0-19-cloud-amd64-x86_64-with-glibc2.36)
Working directory: 
/tmp/autopkgtest-lxc.7f33ovby/downtmp/autopkgtest_tmp/test

Docutils package: /usr/lib/python3/dist-packages/docutils
test_pickle (test_pickle.PickleTests) ... ok
test_error_handler (test_settings.ConfigEnvVarFileTests) ... ok
test_list (test_settings.ConfigEnvVarFileTests) ... ok
test_list2 (test_settings.ConfigEnvVarFileTests) ... ok


OpenPGP_signature
Description: OpenPGP digital signature