summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorIan Lee <IanLee1521@gmail.com>2016-06-25 14:39:51 -0700
committerIan Lee <IanLee1521@gmail.com>2016-06-25 14:39:51 -0700
commita0d5d5d0bb2fc5e3cd75439298abce1f14323f1b (patch)
treec03aefebfac889324215af5a23b1aaf7ea69e963 /testsuite
parent2a5e575611674b0d202c5ea0322fce23718d6e02 (diff)
downloadpep8-a0d5d5d0bb2fc5e3cd75439298abce1f14323f1b.tar.gz
Added test case based on @gvanrossum comment
https://github.com/PyCQA/pycodestyle/issues/400\#issue-66790880
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/E30.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/E30.py b/testsuite/E30.py
index 1aa1137..1471079 100644
--- a/testsuite/E30.py
+++ b/testsuite/E30.py
@@ -117,3 +117,14 @@ def a():
if a():
a()
#:
+
+#: E305:8:1
+# Example from https://github.com/PyCQA/pycodestyle/issues/400
+import stuff
+
+
+def main():
+ blah, blah
+
+if __name__ == '__main__':
+ main()