Open ellert opened 3 months ago
Regarding the second failure:
With Python 3.12 pos
is 0 and the return statement is executed. With Python 3.13 pos
is 2 and the exception is raised.
if pos in [0, 1]:
return pos
# got a stdin prompt
if pos == 2:
if not self._stdin_handler:
raise ValueError('Stdin Requested but not stdin handler available')
This test is skipped if PyPy is used. It is alos skipped on macos. In both cases "because of REPL differences". I have no better suggestion than to skip the test for Python >= 3.13 for the same reason.
Two tests fail when using Python 3.13:
The list of changes in Python 3.13 are described here: https://docs.python.org/3.13/whatsnew/3.13.html
The first failure is related to the following change: https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes
"Compiler now strip indents from docstrings. This will reduce the size of bytecode cache (e.g. .pyc file). For example, cache file size for sqlalchemy.orm.session in SQLAlchemy 2.0 is reduced by about 5%. This change will affect tools using docstrings, like doctest.Compiler now strip indents from docstrings. This will reduce the size of bytecode cache (e.g. .pyc file). For example, cache file size for sqlalchemy.orm.session in SQLAlchemy 2.0 is reduced by about 5%. This change will affect tools using docstrings, like doctest."
If the four spaces at the beginning of the string ar removed, the tast passes, e.g.:
is changed to:
For the second failure, I have no proposed fix.