[New-bugs-announce] [issue10134] test_email failures on Windows: end of line issue?

STINNER Victor report at bugs.python.org
Mon Oct 18 05:49:04 CEST 2010


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

See attached file for the full output. One example:

== CPython 3.2a3+ (py3k:85660, Oct 17 2010, 21:57:48) [MSC v.1500 32 bit (Intel)]
==   Windows-XP-5.1.2600-SP3 little-endian
======================================================================
FAIL: test_MIME_digest (email.test.test_email.TestBytesGeneratorIdempotent)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\victor\py3k\lib\email\test\test_email.py", line 2016, in test_MIME_digest
    self._idempotent(msg, text)
  File "C:\victor\py3k\lib\email\test\test_email.py", line 2947, in _idempotent
    self.assertEqual(data, b.getvalue())
  File "C:\victor\py3k\lib\email\test\test_email.py", line 2952, in assertEqual
    self.assertListEqual(str1.split(b'\n'), str2.split(b'\n'))
AssertionError: Lists differ: [b'MIME-version: 1.0\r', b'Fro... != [b'MIME-version: 1.0', b'From:...

First differing element 0:
b'MIME-version: 1.0\r'
b'MIME-version: 1.0'

- [b'MIME-version: 1.0\r',
?                     --

+ [b'MIME-version: 1.0',
-  b'From: ppp-request at zzz.org\r',
?                             --

+  b'From: ppp-request at zzz.org',
-  b'Sender: ppp-admin at zzz.org\r',
?                             --

+  b'Sender: ppp-admin at zzz.org',
-  b'To: ppp at zzz.org\r',
?                   --

+  b'To: ppp at zzz.org',
-  b'Subject: Ppp digest, Vol 1 #2 - 5 msgs\r',
?                                          --

+  b'Subject: Ppp digest, Vol 1 #2 - 5 msgs',
-  b'Date: Fri, 20 Apr 2001 20:18:00 -0400 (EDT)\r',
?                                               --

+  b'Date: Fri, 20 Apr 2001 20:18:00 -0400 (EDT)',
-  b'X-Mailer: Mailman v2.0.4\r',
?                            --

+  b'X-Mailer: Mailman v2.0.4',
-  b'X-Mailman-Version: 2.0.4\r',
?                            --

+  b'X-Mailman-Version: 2.0.4',
-  b'Content-Type: multipart/mixed; boundary="192.168.1.2.889.32614.987812255.500.21814"\r',
?                                                                                       --

+  b'Content-Type: multipart/mixed; boundary="192.168.1.2.889.32614.987812255.500.21814"',
-  b'\r',
?    --

+  b'',
-  b'--192.168.1.2.889.32614.987812255.500.21814\r',
?                                               --

+  b'--192.168.1.2.889.32614.987812255.500.21814',
-  b'Content-type: text/plain; charset=us-ascii\r',
?                                              --

+  b'Content-type: text/plain; charset=us-ascii',
-  b'Content-description: Masthead (Ppp digest, Vol 1 #2)\r',
?                                                        --

+  b'Content-description: Masthead (Ppp digest, Vol 1 #2)',
-  b'\r',
?    --

+  b'',
   b'Send Ppp mailing list submissions to\r',
   b'\tppp at zzz.org\r',
   b'\r',
   b'To subscribe or unsubscribe via the World Wide Web, visit\r',
   b'\thttp://www.zzz.org/mailman/listinfo/ppp\r',
   b"or, via email, send a message with subject or body 'help' to\r",
   b'\tppp-request at zzz.org\r',
   b'\r',
   b'You can reach the person managing the list at\r',
   b'\tppp-admin at zzz.org\r',
   b'\r',
   b'When replying, please edit your Subject line so it is more specific\r',
   b'than "Re: Contents of Ppp digest..."\r',
   b'\r',
-  b'\r',
?    --

+  b'',
-  b'--192.168.1.2.889.32614.987812255.500.21814\r',
?                                               --

+  b'--192.168.1.2.889.32614.987812255.500.21814',
-  b'Content-type: text/plain; charset=us-ascii\r',
?                                              --

+  b'Content-type: text/plain; charset=us-ascii',
-  b"Content-description: Today's Topics (5 msgs)\r",
?                                                --

+  b"Content-description: Today's Topics (5 msgs)",
-  b'\r',
?    --

+  b'',
   b"Today's Topics:\r",
   b'\r',
   b'   1. testing #1 (Barry A. Warsaw)\r',
   b'   2. testing #2 (Barry A. Warsaw)\r',
   b'   3. testing #3 (Barry A. Warsaw)\r',
   b'   4. testing #4 (Barry A. Warsaw)\r',
   b'   5. testing #5 (Barry A. Warsaw)\r',
-  b'\r',
?    --

+  b'',
-  b'--192.168.1.2.889.32614.987812255.500.21814\r',
?                                               --

+  b'--192.168.1.2.889.32614.987812255.500.21814',
-  b'Content-Type: multipart/digest; boundary="__--__--"\r',
?                                                       --

+  b'Content-Type: multipart/digest; boundary="__--__--"',
-  b'\r',
?    --

+  b'',
-  b'--__--__--\r',
?              --

+  b'--__--__--',
-  b'\r',
?    --

+  b'',
-  b'Message: 1\r',
?              --

+  b'Message: 1',
-  b'Content-Type: text/plain; charset=us-ascii\r',
?                                              --

+  b'Content-Type: text/plain; charset=us-ascii',
-  b'Content-Transfer-Encoding: 7bit\r',
?                                   --

+  b'Content-Transfer-Encoding: 7bit',
-  b'Date: Fri, 20 Apr 2001 20:16:13 -0400\r',
?                                         --

+  b'Date: Fri, 20 Apr 2001 20:16:13 -0400',
-  b'To: ppp at zzz.org\r',
?                   --

+  b'To: ppp at zzz.org',
-  b'From: barry at digicool.com (Barry A. Warsaw)\r',
?                                              --

+  b'From: barry at digicool.com (Barry A. Warsaw)',
-  b'Subject: [Ppp] testing #1\r',
?                             --

+  b'Subject: [Ppp] testing #1',
-  b'Precedence: bulk\r',
?                    --

+  b'Precedence: bulk',
-  b'\r',
?    --

+  b'',
   b'\r',
   b'hello\r',
   b'\r',
-  b'\r',
?    --

+  b'',
-  b'--__--__--\r',
?              --

+  b'--__--__--',
-  b'\r',
?    --

+  b'',
-  b'Message: 2\r',
?              --

+  b'Message: 2',
-  b'Date: Fri, 20 Apr 2001 20:16:21 -0400\r',
?                                         --

+  b'Date: Fri, 20 Apr 2001 20:16:21 -0400',
-  b'Content-Type: text/plain; charset=us-ascii\r',
?                                              --

+  b'Content-Type: text/plain; charset=us-ascii',
-  b'Content-Transfer-Encoding: 7bit\r',
?                                   --

+  b'Content-Transfer-Encoding: 7bit',
-  b'To: ppp at zzz.org\r',
?                   --

+  b'To: ppp at zzz.org',
-  b'From: barry at digicool.com (Barry A. Warsaw)\r',
?                                              --

+  b'From: barry at digicool.com (Barry A. Warsaw)',
-  b'Precedence: bulk\r',
?                    --

+  b'Precedence: bulk',
-  b'\r',
?    --

+  b'',
   b'\r',
   b'hello\r',
   b'\r',
-  b'\r',
?    --

+  b'',
-  b'--__--__--\r',
?              --

+  b'--__--__--',
-  b'\r',
?    --

+  b'',
-  b'Message: 3\r',
?              --

+  b'Message: 3',
-  b'Date: Fri, 20 Apr 2001 20:16:25 -0400\r',
?                                         --

+  b'Date: Fri, 20 Apr 2001 20:16:25 -0400',
-  b'Content-Type: text/plain; charset=us-ascii\r',
?                                              --

+  b'Content-Type: text/plain; charset=us-ascii',
-  b'Content-Transfer-Encoding: 7bit\r',
?                                   --

+  b'Content-Transfer-Encoding: 7bit',
-  b'To: ppp at zzz.org\r',
?                   --

+  b'To: ppp at zzz.org',
-  b'From: barry at digicool.com (Barry A. Warsaw)\r',
?                                              --

+  b'From: barry at digicool.com (Barry A. Warsaw)',
-  b'Subject: [Ppp] testing #3\r',
?                             --

+  b'Subject: [Ppp] testing #3',
-  b'Precedence: bulk\r',
?                    --

+  b'Precedence: bulk',
-  b'\r',
?    --

+  b'',
   b'\r',
   b'hello\r',
   b'\r',
-  b'\r',
?    --

+  b'',
-  b'--__--__--\r',
?              --

+  b'--__--__--',
-  b'\r',
?    --

+  b'',
-  b'Message: 4\r',
?              --

+  b'Message: 4',
-  b'Date: Fri, 20 Apr 2001 20:16:28 -0400\r',
?                                         --

+  b'Date: Fri, 20 Apr 2001 20:16:28 -0400',
-  b'Content-Type: text/plain; charset=us-ascii\r',
?                                              --

+  b'Content-Type: text/plain; charset=us-ascii',
-  b'Content-Transfer-Encoding: 7bit\r',
?                                   --

+  b'Content-Transfer-Encoding: 7bit',
-  b'To: ppp at zzz.org\r',
?                   --

+  b'To: ppp at zzz.org',
-  b'From: barry at digicool.com (Barry A. Warsaw)\r',
?                                              --

+  b'From: barry at digicool.com (Barry A. Warsaw)',
-  b'Subject: [Ppp] testing #4\r',
?                             --

+  b'Subject: [Ppp] testing #4',
-  b'Precedence: bulk\r',
?                    --

+  b'Precedence: bulk',
-  b'\r',
?    --

+  b'',
   b'\r',
   b'hello\r',
   b'\r',
-  b'\r',
?    --

+  b'',
-  b'--__--__--\r',
?              --

+  b'--__--__--',
-  b'\r',
?    --

+  b'',
-  b'Message: 5\r',
?              --

+  b'Message: 5',
-  b'Date: Fri, 20 Apr 2001 20:16:32 -0400\r',
?                                         --

+  b'Date: Fri, 20 Apr 2001 20:16:32 -0400',
-  b'Content-Type: text/plain; charset=us-ascii\r',
?                                              --

+  b'Content-Type: text/plain; charset=us-ascii',
-  b'Content-Transfer-Encoding: 7bit\r',
?                                   --

+  b'Content-Transfer-Encoding: 7bit',
-  b'To: ppp at zzz.org\r',
?                   --

+  b'To: ppp at zzz.org',
-  b'From: barry at digicool.com (Barry A. Warsaw)\r',
?                                              --

+  b'From: barry at digicool.com (Barry A. Warsaw)',
-  b'Subject: [Ppp] testing #5\r',
?                             --

+  b'Subject: [Ppp] testing #5',
-  b'Precedence: bulk\r',
?                    --

+  b'Precedence: bulk',
-  b'\r',
?    --

+  b'',
   b'\r',
   b'hello\r',
   b'\r',
   b'\r',
   b'\r',
-  b'\r',
?    --

+  b'',
-  b'--__--__----\r',
?                --

+  b'--__--__----',
-  b'--192.168.1.2.889.32614.987812255.500.21814\r',
?                                               --

+  b'--192.168.1.2.889.32614.987812255.500.21814',
-  b'Content-type: text/plain; charset=us-ascii\r',
?                                              --

+  b'Content-type: text/plain; charset=us-ascii',
-  b'Content-description: Digest Footer\r',
?                                      --

+  b'Content-description: Digest Footer',
-  b'\r',
?    --

+  b'',
   b'_______________________________________________\r',
   b'Ppp mailing list\r',
   b'Ppp at zzz.org\r',
   b'http://www.zzz.org/mailman/listinfo/ppp\r',
   b'\r',
-  b'\r',
?    --

+  b'',
-  b'--192.168.1.2.889.32614.987812255.500.21814--\r',
?                                                 --

+  b'--192.168.1.2.889.32614.987812255.500.21814--',
   b'\r',
   b'End of Ppp Digest\r',
   b'\r',
   b'']

----------
components: Library (Lib)
files: out.txt
messages: 118996
nosy: haypo, r.david.murray
priority: normal
severity: normal
status: open
title: test_email failures on Windows: end of line issue?
versions: Python 3.2
Added file: http://bugs.python.org/file19261/out.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10134>
_______________________________________


More information about the New-bugs-announce mailing list