summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorŁukasz Rogalski <rogalski.91@gmail.com>2016-03-23 23:24:51 +0100
committerŁukasz Rogalski <rogalski.91@gmail.com>2016-03-29 18:42:30 +0200
commitb7bf8c80608baa9ebbc6ab5c7692a58243c6f775 (patch)
treee4b985a471511fb1b78f7337bd3d7392e03a45e2 /testsuite
parent2e151c544a4312ec9721c6abedd0f1e4067f9231 (diff)
downloadpep8-b7bf8c80608baa9ebbc6ab5c7692a58243c6f775.tar.gz
complain about missing space before opening parentheses of import statement
Solves issue #489
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/E27.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/E27.py b/testsuite/E27.py
index f9d3e8e..888b3a8 100644
--- a/testsuite/E27.py
+++ b/testsuite/E27.py
@@ -28,3 +28,17 @@ a and b
a and b
#: E273 E274
this and False
+#: Okay
+from u import (a, b)
+from v import c, d
+#: E271
+from w import (e, f)
+#: E275
+from w import(e, f)
+#: E275
+from importable.module import(e, f)
+#: E275
+try:
+ from importable.module import(e, f)
+except ImportError:
+ pass