﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25188	inconsistent escaping in assertRaisesMessage test output	Chris Jerdonek	nobody	"If `assertRaisesMessage` fails with differing exception text, then the test output escapes the two strings differently in the display.

For example--

{{{#!python
def test(self):
    with self.assertRaisesMessage(Exception, ""two words""):
        raise Exception(""no, three words"")
}}}

yields--

{{{
----------------------------------------------------------------------
Exception: no, three words

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ""***.py"", line 178, in test
    raise Exception(""no, three words"")
AssertionError: ""two\ words"" does not match ""no, three words""
}}}

Observe the spurious slash (""\"") before the space.  The test output is especially annoying if the string is long and has many spaces.  It can look something like--

{{{
\{\
\ \ \ \ \""
}}}
"	Bug	closed	Testing framework	1.8	Normal	fixed	assertRaisesMessage		Accepted	1	0	0	0	0	0
