From e9e63dcd2ea37ac8d3bd72c9d4a89e7a8a5e7b2e Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Fri, 18 Jan 2013 14:44:27 +0400 Subject: test_failure.py: make the test a bit more strict (fix by @jszakmeister) --- functional_tests/test_failure.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'functional_tests') diff --git a/functional_tests/test_failure.py b/functional_tests/test_failure.py index ed856ae..e9d17e9 100644 --- a/functional_tests/test_failure.py +++ b/functional_tests/test_failure.py @@ -20,7 +20,9 @@ class TestPrintedTraceback(PluginTester, unittest.TestCase): print str(self.output) print '!' * 70 print - assert 'ordinal not in range(128)' in str(self.output) + + # Look for the line in the traceback causing the failure + assert "raise '\\xf1'.encode('ASCII')" in str(self.output) assert 'FAILED (errors=1)' in str(self.output) if __name__ == '__main__': -- cgit v1.2.1