From 967840543f1f20754dd1579083e8a8271ab6cb62 Mon Sep 17 00:00:00 2001 From: Eisuke Kawashima Date: Fri, 15 Oct 2021 22:54:46 +0900 Subject: Fix Flake8 Errors (#442) * Fix PEP8 [E101](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * Fix PEP8 [E711](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * Fix E999 (python2) * Fix PEP8 [F401](https://flake8.pycqa.org/en/4.0.1/user/error-codes.html) --- tests/test_c_parser.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/test_c_parser.py') diff --git a/tests/test_c_parser.py b/tests/test_c_parser.py index e83bd7d..33f3f07 100755 --- a/tests/test_c_parser.py +++ b/tests/test_c_parser.py @@ -1,7 +1,5 @@ #!/usr/bin/env python -import pprint -import re import os, sys import io import unittest @@ -10,7 +8,7 @@ sys.path[0:0] = ['.', '..'] from pycparser import c_parser from pycparser.c_ast import * -from pycparser.c_parser import CParser, Coord, ParseError +from pycparser.c_parser import ParseError _c_parser = c_parser.CParser( lex_optimize=False, @@ -729,7 +727,7 @@ class TestCParser_fundamentals(TestCParser_base): def test_parenthesized_compounds(self): e = self.parse(r''' void foo() { - int a; + int a; ({}); ({ 1; }); ({ 1; 2; }); -- cgit v1.2.1