This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: doctest does not consider \r\n a
Type: Stage:
Components: Library (Lib) Versions: Python 3.7, Python 3.6, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: X-Istence, serhiy.storchaka
Priority: normal Keywords:

Created on 2017-11-20 22:58 by X-Istence, last changed 2022-04-11 14:58 by admin.

Files
File name Uploaded Description Edit
test.py X-Istence, 2017-11-20 22:58
Messages (2)
msg306595 - (view) Author: Bert JW Regeer (X-Istence) * Date: 2017-11-20 22:58
doctest fails to consider `\r\n` as a blank line.
msg306633 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-11-21 07:55
It considers `\r\n` as a blank line. It just doesn't consider `\r\n` as `\n` in a non-blank line.

If add `\r` after `some text` the test will pass. Or use NORMALIZE_WHITESPACE.
History
Date User Action Args
2022-04-11 14:58:54adminsetgithub: 76278
2017-11-24 19:33:14terry.reedysetversions: - Python 3.4, Python 3.5, Python 3.8
2017-11-21 07:55:34serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg306633
2017-11-20 22:58:10X-Istencecreate