]> granicus.if.org Git - python/commit
Fix TestBytesGeneratorIdempotent tests and a couple bugs they revealed.
authorR. David Murray <rdmurray@bitdance.com>
Sun, 21 Nov 2010 16:53:48 +0000 (16:53 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Sun, 21 Nov 2010 16:53:48 +0000 (16:53 +0000)
commit719a449ba6ee2390758efa0751bbb1277bd61174
tree67fac05f24f9aeac5f14ead5ad9bfc7e60012613
parent0a4dae5309ab30d3a217d3eb0329e3b3feec736c
Fix TestBytesGeneratorIdempotent tests and a couple bugs they revealed.

The tests that were failing on (some) windows machines, where the
msg_XX.txt files used native \r\n lineseps are now also run on machines
that use \n natively, and conversely the \n tests are run on Windows.
The failing tests revealed one place where linesep needed to be added
to a flatten call in generator.  There was also another that the tests
didn't catch, so I added a test for that case as well.
Lib/email/generator.py
Lib/email/test/test_email.py