diff options
author | Dmitry Shachnev <mitya57@gmail.com> | 2013-01-18 14:44:27 +0400 |
---|---|---|
committer | Dmitry Shachnev <mitya57@gmail.com> | 2013-01-18 14:44:27 +0400 |
commit | e9e63dcd2ea37ac8d3bd72c9d4a89e7a8a5e7b2e (patch) | |
tree | 004e977fbe955ede0b002989611c9a875ece5293 /functional_tests | |
parent | ba86337c84546a9be80e6c11c53846ed8d745015 (diff) | |
download | nose-e9e63dcd2ea37ac8d3bd72c9d4a89e7a8a5e7b2e.tar.gz |
test_failure.py: make the test a bit more strict (fix by @jszakmeister)
Diffstat (limited to 'functional_tests')
-rw-r--r-- | functional_tests/test_failure.py | 4 |
1 files changed, 3 insertions, 1 deletions
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__': |