summaryrefslogtreecommitdiff
path: root/testsuite/E12.py
diff options
context:
space:
mode:
authorSam Vilain <svilain@saymedia.com>2012-05-27 14:20:54 -0700
committerSam Vilain <svilain@saymedia.com>2012-05-27 14:20:54 -0700
commit9e54fd1245074cdac316ee4f29b9052694a10138 (patch)
tree54e5c34d19fbec7e6cd682194dacb58cfdfd2ac1 /testsuite/E12.py
parent0bfe264f037ad1c908850c082d24f01e97e104cd (diff)
downloadpep8-9e54fd1245074cdac316ee4f29b9052694a10138.tar.gz
Fix an E120 false positive
If there was a bracketed expression closed on the same line inside a visual indent, the code expected indenting to continue at the indent level of the last bracketed sub–expression. To fix, update the current visual indent level as they are popped off the stack.
Diffstat (limited to 'testsuite/E12.py')
-rw-r--r--testsuite/E12.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/E12.py b/testsuite/E12.py
index 0f2da14..d9de328 100644
--- a/testsuite/E12.py
+++ b/testsuite/E12.py
@@ -146,3 +146,7 @@ print 'l.{line}\t{pos}\t{name}\t{text}'.format(
name=tokenize.tok_name[token[0]],
text=repr(token[1]),
)
+#: Okay
+if os.path.exists(os.path.join(path, PEP8_BIN)):
+ cmd = ([os.path.join(path, PEP8_BIN)] +
+ self._pep8_options(targetfile))