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.

Commits

Files