Fix unit tests on Python 3.11.

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

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.

Summary ID
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
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (d71c752)