Fix unit tests on Python 3.11.
Review Request #12535 — Created Aug. 15, 2022 and submitted — Latest diff uploaded
The
sphinx-testing
module used for unit tests has a compatibility
issue in Python 3.11. Itspath.read_text()
method tries to open a file
withmode='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.