Fix `test_i18n_literalblock_warning` which would sometimes fail due to the text wrapping of error messages.

This commit is contained in:
Jonathan Waltman 2013-01-03 13:55:26 -06:00
parent d997aa76b0
commit cf4166fa58

View File

@ -219,7 +219,7 @@ def test_i18n_literalblock_warning(app):
u"\n this is" u"\n this is"
u"\n literal block\n" u"\n literal block\n"
u"\nMISSING LITERAL BLOCK:\n" u"\nMISSING LITERAL BLOCK:\n"
u"\n<SYSTEM MESSAGE: ") u"\n<SYSTEM MESSAGE:")
assert result.startswith(expect) assert result.startswith(expect)
warnings = warnfile.getvalue().replace(os.sep, '/') warnings = warnfile.getvalue().replace(os.sep, '/')