Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 13, 2021
1 parent 9b5ad32 commit 28b6fd4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/integration/test_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,14 @@ def test_handling_syntaxerrors_across_pythons():
"""
if sys.version_info[:2] < (3, 10):
# Python 3.9 or older
err = SyntaxError("invalid syntax", ("<unknown>", 2, 5, "bad python:\n"))
err = SyntaxError(
"invalid syntax", ("<unknown>", 2, 5, "bad python:\n")
)
expected = (2, 4)
else:
err = SyntaxError("invalid syntax", ("<unknown>", 2, 1, "bad python:\n", 2, 11))
err = SyntaxError(
"invalid syntax", ("<unknown>", 2, 1, "bad python:\n", 2, 11)
)
expected = (2, 1)
file_checker = checker.FileChecker("-", {}, mock.MagicMock())
actual = file_checker._extract_syntax_information(err)
Expand Down

0 comments on commit 28b6fd4

Please sign in to comment.