We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae5a9cb commit a12c042Copy full SHA for a12c042
tests/test_utils.py
@@ -71,12 +71,12 @@ def test_complex_miss(self):
71
class FormatTracebackTestCase(unittest.TestCase):
72
def test_format_traceback(self):
73
try:
74
- raise IOError("Because we need an exception.")
+ raise ValueError("Because we need an exception.")
75
except:
76
exc_info = sys.exc_info()
77
result = format_traceback(exc_info)
78
self.assertTrue(result.startswith('Traceback (most recent call last):\n'))
79
self.assertFalse(result.endswith('\n'))
80
lines = result.split('\n')
81
self.assertTrue(len(lines) > 3)
82
- self.assertEqual(lines[-1], 'OSError: Because we need an exception.')
+ self.assertEqual(lines[-1], 'ValueError: Because we need an exception.')
0 commit comments