summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>2021-08-13 15:13:34 +0000
committerpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>2021-08-13 15:13:35 +0000
commit28b6fd45759aa16bbc69d598944d9ee07eadd87a (patch)
tree2acabb9273ad8a6c8a113a52298a978cc410fa93
parent9b5ad3209f501ccdafeb9f9b1d0272fbc1884a29 (diff)
downloadflake8-bug/1372.tar.gz
[pre-commit.ci] auto fixes from pre-commit.com hooksbug/1372
for more information, see https://pre-commit.ci
-rw-r--r--tests/integration/test_checker.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/integration/test_checker.py b/tests/integration/test_checker.py
index 4ceda19..01ee38e 100644
--- a/tests/integration/test_checker.py
+++ b/tests/integration/test_checker.py
@@ -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)