Issue 32097: doctest does not consider \r\n a (original) (raw)

Issue32097

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:54 admin set github: 76278
2017-11-24 19:33:14 terry.reedy set versions: - Python 3.4, Python 3.5, Python 3.8
2017-11-21 07:55:34 serhiy.storchaka set nosy: + serhiy.storchakamessages: +
2017-11-20 22:58:10 X-Istence create