Author martin.panter
Recipients koobs, martin.panter, vstinner
Date 2016-07-27.03:17:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469589424.81.0.949068552049.issue19613@psf.upfronthosting.co.za>
In-reply-to
Content
I played with the server and group that is apparently used in the test:

>>> server = NNTP_SSL("nntp.aioe.org")
>>> [_, _, first, last, _] = server.group("fr.comp.lang.python")
>>> first
2900
>>> last
2915
>>> server.body(last)[1].lines[-1]
b''
>>> server.body(first)[1].lines[-1]
b'Merci'
>>> server.body(last - 1)[1].lines[-1]
b'Kevin'

I tried all articles from 2900–2915, and none of them end with a dot on its own line, so I don’t actually know what caused the failure.

However looking again at the _getlongresp() implementation, I cannot imagine how the test failure can occur except for a genuine body that ends with a dot on its own line (encoded as b".." and then converted to b"."). Here is a quick patch to alter the test cases.
History
Date User Action Args
2016-07-27 03:17:04martin.pantersetrecipients: + martin.panter, vstinner, koobs
2016-07-27 03:17:04martin.pantersetmessageid: <1469589424.81.0.949068552049.issue19613@psf.upfronthosting.co.za>
2016-07-27 03:17:04martin.panterlinkissue19613 messages
2016-07-27 03:17:04martin.pantercreate