mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Whitespace normalization.
This commit is contained in:
parent
6fd7120616
commit
7e01e284cb
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ class TracebackCases(unittest.TestCase):
|
||||||
return traceback.format_exception_only(exc, value)
|
return traceback.format_exception_only(exc, value)
|
||||||
else:
|
else:
|
||||||
raise ValueError, "call did not raise exception"
|
raise ValueError, "call did not raise exception"
|
||||||
|
|
||||||
def syntax_error_with_caret(self):
|
def syntax_error_with_caret(self):
|
||||||
compile("def fact(x):\n\treturn x!\n", "?", "exec")
|
compile("def fact(x):\n\treturn x!\n", "?", "exec")
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ class TracebackCases(unittest.TestCase):
|
||||||
self.assert_(len(err) == 4)
|
self.assert_(len(err) == 4)
|
||||||
self.assert_("^" in err[2]) # third line has caret
|
self.assert_("^" in err[2]) # third line has caret
|
||||||
self.assert_(err[1].strip() == "return x!")
|
self.assert_(err[1].strip() == "return x!")
|
||||||
|
|
||||||
def test_nocaret(self):
|
def test_nocaret(self):
|
||||||
err = self.get_exception_format(self.syntax_error_without_caret,
|
err = self.get_exception_format(self.syntax_error_without_caret,
|
||||||
SyntaxError)
|
SyntaxError)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue