Kaydet (Commit) 7e01e284 authored tarafından Tim Peters's avatar Tim Peters

Whitespace normalization.

üst 6fd71206
......@@ -16,7 +16,7 @@ class TracebackCases(unittest.TestCase):
return traceback.format_exception_only(exc, value)
else:
raise ValueError, "call did not raise exception"
def syntax_error_with_caret(self):
compile("def fact(x):\n\treturn x!\n", "?", "exec")
......@@ -30,7 +30,7 @@ class TracebackCases(unittest.TestCase):
self.assert_(len(err) == 4)
self.assert_("^" in err[2]) # third line has caret
self.assert_(err[1].strip() == "return x!")
def test_nocaret(self):
err = self.get_exception_format(self.syntax_error_without_caret,
SyntaxError)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment