[New-bugs-announce] [issue40295] doctest handling of multiline strings is broken

Filip Rembiałkowski report at bugs.python.org
Wed Apr 15 16:37:13 EDT 2020


New submission from Filip Rembiałkowski <filip.rembialkowski at gmail.com>:

The doctest module does not compare multiline strings properly, as attached example proves. 

Tested on 2.7, 3.6 and 3.9.0a5+. (platform: Ubuntu 18.04).

Related: https://stackoverflow.com/questions/60956015/unexpected-errors-while-testing-python3-code-with-doctest

----------
components: Library (Lib)
files: doctest-bugs.py
messages: 366554
nosy: Filip Rembiałkowski
priority: normal
severity: normal
status: open
title: doctest handling of multiline strings is broken
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49065/doctest-bugs.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40295>
_______________________________________


More information about the New-bugs-announce mailing list