Fix unit tests on Python 3.11.

Review Request #12535 — Created Aug. 15, 2022 and submitted — Latest diff uploaded

Information

beanbag-docutils
master

Reviewers

The sphinx-testing module used for unit tests has a compatibility
issue in Python 3.11. Its path.read_text() method tries to open a file
with mode='U', which was deprecated and is no longer supported.

This isn't a big problem for us. We now just open the file ourselves,
fixing compatibility in our test suite.

All unit tests pass on Python 3.6 through 3.11.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Fix unit tests on Python 3.11.
The `sphinx-testing` module used for unit tests has a compatibility issue in Python 3.11. Its `path.read_text()` method tries to open a file with `mode='U'`, which was deprecated and is no longer supported. This isn't a big problem for us. We now just open the file ourselves, fixing compatibility in our test suite.
24c70126d8cd08396efa654b71e60ec5587d16bc Christian Hammond
beanbag_docutils/sphinx/ext/tests/testcase.py
Loading...