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 ezio.melotti
Recipients abarry, ezio.melotti, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2016-03-12.14:58:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457794701.55.0.700117439482.issue26226@psf.upfronthosting.co.za>
In-reply-to
Content
> I'm surprised by the test_codecencodings_iso2022 failures. Example:

======================================================================
FAIL: test_incrementaldecoder (test.test_codecencodings_iso2022.Test_ISO2022_KR)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "E:\GitHub\cpython\lib\test\multibytecodec_support.py", line 208, in test_incrementaldecoder
    self.assertEqual(ostream.getvalue(), self.tstring[1])
AssertionError: b'\xe[334 chars]\x80\n\xed\x9a\xa8\xec\x9c\xa8\xec\xa0\x81\xec[1668 chars]4.\n' != b'\xe[334 chars]\x80\r\n\xed\x9a\xa8\xec\x9c\xa8\xec\xa0\x81\x[1682 chars]\r\n'

I run into this problem during a sprint, with a machine that was also running Windows and cloned from the git repo.  Those bytes are read from txt files in the test/cjkencodings dir, and they are marked as binary files in .hgeol.  Since git ignores .hgeol and treats them as text files, it also changes the newline to \r\n causing the failure.
The tests pass without problems after cloning with Mercurial.
History
Date User Action Args
2016-03-12 14:58:21ezio.melottisetrecipients: + ezio.melotti, paul.moore, vstinner, tim.golden, zach.ware, steve.dower, abarry
2016-03-12 14:58:21ezio.melottisetmessageid: <1457794701.55.0.700117439482.issue26226@psf.upfronthosting.co.za>
2016-03-12 14:58:21ezio.melottilinkissue26226 messages
2016-03-12 14:58:21ezio.melotticreate