Message135608
>>> tc.assertEqual("x\n" * 40 + "\n", "x\n" * 40 + "\r\n")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/antoine/cpython/default/Lib/unittest/case.py", line 662, in assertEqual
assertion_func(first, second, msg=msg)
File "/home/antoine/cpython/default/Lib/unittest/case.py", line 1041, in assertMultiLineEqual
self.fail(self._formatMessage(msg, standardMsg))
File "/home/antoine/cpython/default/Lib/unittest/case.py", line 531, in fail
raise self.failureException(msg)
AssertionError: 'x\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx [truncated]... != 'x\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx [truncated]...
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
-
+
It isn't obvious when looking at this printout that the last newline differed. |
|
Date |
User |
Action |
Args |
2011-05-09 16:36:52 | pitrou | set | recipients:
+ pitrou, ezio.melotti, michael.foord |
2011-05-09 16:36:52 | pitrou | set | messageid: <1304959012.21.0.957539258305.issue12038@psf.upfronthosting.co.za> |
2011-05-09 16:36:50 | pitrou | link | issue12038 messages |
2011-05-09 16:36:50 | pitrou | create | |
|