Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
Searching further this seems to be reported earlier with issue24780 with caret displayed wrongly which was also due to newline missing. But the sample case reported here is also listed at one of the examples in https://bugs.python.org/issue24780#msg258466 . There is an open patch with review in the issue. I guess this is a duplicate of issue24780 then? Related sample case at msg258466 ====================================================================== FAIL: test_notrailingnewline_2 (__main__.AssertEqualTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "test.py", line 18, in test_notrailingnewline_2 self.assertEqual("a\nbcdf", "a\nbddg") AssertionError: 'a\nbcdf' != 'a\nbddg' a - bcdf+ bddg ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35687> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com