Message258132
There is another case where the error message displayed by self.assertEqual() is weird.
======================================================================
FAIL: test_newline_1 (__main__.AssertEqualTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 9, in test_newline_1
self.assertEqual("\n abc", "\n abd")
AssertionError: '\n abc' != '\n abd'
- abc? ^
+ abd? ^
======================================================================
FAIL: test_newline_2 (__main__.AssertEqualTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 12, in test_newline_2
self.assertEqual("\nabc", "\nabd")
AssertionError: '\nabc' != '\nabd'
- abc+ abd
----------------------------------------------------------------------
There is a difference in between "\nabc" and "\n abc" and hence the difference between output |
|
Date |
User |
Action |
Args |
2016-01-13 06:04:19 | pynewbie | set | recipients:
+ pynewbie, rbcollins, ezio.melotti, r.david.murray, michael.foord, chris.jerdonek |
2016-01-13 06:04:19 | pynewbie | set | messageid: <1452665059.48.0.421900341342.issue24780@psf.upfronthosting.co.za> |
2016-01-13 06:04:19 | pynewbie | link | issue24780 messages |
2016-01-13 06:04:19 | pynewbie | create | |
|