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 vstinner
Recipients Cornelius Diekmann, cstratak, martin.panter, vstinner, xdegaye
Date 2017-09-28.15:00:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Does reading the string b'I wish to buy a fish license.\n' not cause a problem, too?

This string TEST_STRING_1 is used for a single os.write() call, whereas TEST_STRING_2 is splitted and written in two parts with two os.write() calls.

I prefer minimal change, since I don't know well the pty module.

> Is reading len(expected) bytes the correct behavior for systems where normalize_output is needed?

Yeah, I looked at this function. normalize_output() can return a string shorter than the input: len(normalize_output(s2)) <= len(s2).

So I think that len(s2) < len(expected) is correct.
Date User Action Args
2017-09-28 15:00:16vstinnersetrecipients: + vstinner, xdegaye, martin.panter, cstratak, Cornelius Diekmann
2017-09-28 15:00:16vstinnersetmessageid: <>
2017-09-28 15:00:16vstinnerlinkissue31158 messages
2017-09-28 15:00:16vstinnercreate