Closed
Description
Bug report
Bug description:
Example: https://github.com/python/cpython/actions/runs/8883326110/job/24389960128?pr=118368
Traceback (most recent call last):
File "/home/runner/work/cpython/cpython/Doc/tools/check-warnings.py", line 311, in <module>
sys.exit(main())
^^^^^^
File "/home/runner/work/cpython/cpython/Doc/tools/check-warnings.py", line 279, in main
with Path("Doc/sphinx-warnings.txt").open(encoding="UTF-8") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/pathlib.py", line 1013, in open
return io.open(self, mode, buffering, encoding, errors, newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'Doc/sphinx-warnings.txt'
The 'Doc/sphinx-warnings.txt'
file is a generated file so maybe we upgraded sphinx at some point and the new version does not generate the file if there's no warnings?
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response