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.

Author steven.daprano
Recipients Filip Rembiałkowski, serhiy.storchaka, steven.daprano
Date 2020-04-16.02:46:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587005170.33.0.115571076833.issue40295@roundup.psfhosted.org>
In-reply-to
Content
By the way Filip, you were told on the Stackoverflow page that the output was correct and that you were not using doctest correctly. Serhiy also hinted to you that you should check the output in the REPL and you falsely claimed that it gave the expected output, but it doesn't:

    py> multiline_output()
    'First line\nSecond line\n'

which is nothing like the output you put in your doctest.

This is not a bug in doctest. The very first line of the doctest documentation says:

    The doctest module searches for pieces of text that look like
    interactive Python sessions

so this is expected and documented behaviour, not a bug.
History
Date User Action Args
2020-04-16 02:46:10steven.dapranosetrecipients: + steven.daprano, serhiy.storchaka, Filip Rembiałkowski
2020-04-16 02:46:10steven.dapranosetmessageid: <1587005170.33.0.115571076833.issue40295@roundup.psfhosted.org>
2020-04-16 02:46:10steven.dapranolinkissue40295 messages
2020-04-16 02:46:10steven.dapranocreate