summaryrefslogtreecommitdiff
path: root/testsuite/E30.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-04-03 23:28:21 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-04-03 23:28:21 +0200
commitf45d3020c9e38aecc2f736ab274b4bf759319cad (patch)
treed785092a6db4003acaf2eba055dccdeaef3d566b /testsuite/E30.py
parent4178c7e6f22de9b71b0c40d66f5407fe93e8439a (diff)
downloadpep8-f45d3020c9e38aecc2f736ab274b4bf759319cad.tar.gz
Report correct line number for E303 with comments; issue #60
Diffstat (limited to 'testsuite/E30.py')
-rw-r--r--testsuite/E30.py25
1 files changed, 14 insertions, 11 deletions
diff --git a/testsuite/E30.py b/testsuite/E30.py
index 87f9ffd..0208d05 100644
--- a/testsuite/E30.py
+++ b/testsuite/E30.py
@@ -1,11 +1,11 @@
-#: E301
+#: E301:5:5
class X:
def a():
pass
def b():
pass
-#: E301
+#: E301:6:5
class X:
def a():
@@ -16,26 +16,26 @@ class X:
#:
-#: E302
+#: E302:3:1
#!python
# -*- coding: utf-8 -*-
def a():
pass
-#: E302
+#: E302:2:1
"""Main module."""
def _main():
pass
-#: E302
+#: E302:2:1
import sys
def get_sys_path():
return sys.path
-#: E302
+#: E302:4:1
def a():
pass
def b():
pass
-#: E302
+#: E302:6:1
def a():
pass
@@ -46,13 +46,13 @@ def b():
#:
-#: E303
+#: E303:5:1
print
print
-#: E303
+#: E303:5:1
print
@@ -60,18 +60,21 @@ print
# comment
print
-#: E303
+#: E303:5:5 E303:8:5
def a():
print
# comment
+
+ # another comment
+
print
#:
-#: E304
+#: E304:3:1
@decorator
def function():