From d6f8e3de4f8f932d215619a5f26f6ada95508851 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 27 Jun 2017 10:05:04 +0200 Subject: [PATCH] Add all the E27 issues. --- test/normalizer_issue_files/E27.py | 48 ++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 test/normalizer_issue_files/E27.py diff --git a/test/normalizer_issue_files/E27.py b/test/normalizer_issue_files/E27.py new file mode 100644 index 0000000..c6221f5 --- /dev/null +++ b/test/normalizer_issue_files/E27.py @@ -0,0 +1,48 @@ +# Okay +from u import (a, b) +from v import c, d +#: E221:13 +from w import (e, f) +#: E275:13 +from w import(e, f) +#: E275:29 +from importable.module import(e, f) +try: + #: E275:33 + from importable.module import(e, f) +except ImportError: + pass +# Okay +True and False +#: E221:8 +True and False +#: E221:4 +True and False +#: E221:2 +if 1: + pass +# Syntax Error, no indentation +if 1: +pass +#: E223:8 +True and False +#: E223:4 E223:9 +True and False +#: E221:5 +a and b +#: E221:5 +1 and b +#: E221:5 +a and 2 +#: E221:1 E221:6 +1 and b +#: E221:1 E221:6 +a and 2 +#: E221:4 +this and False +#: E223:5 +a and b +#: E223:1 +a and b +#: E223:4 E223:9 +this and False