summaryrefslogtreecommitdiff
path: root/testsuite/test_blank_lines.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-03-23 10:51:41 -0700
committerAnthony Sottile <asottile@umich.edu>2020-03-23 10:51:41 -0700
commit7e3655b9655ed8a13daa65c6cd2f38a06bfa5469 (patch)
tree0215793a881dc536d23501b10e9bc0a41e6a8182 /testsuite/test_blank_lines.py
parent19a3925a89c71d422b98363d9ccfa8903a65b707 (diff)
downloadpep8-7e3655b9655ed8a13daa65c6cd2f38a06bfa5469.tar.gz
Allow N-and-fewer blank lines before the first top level thing
Diffstat (limited to 'testsuite/test_blank_lines.py')
-rw-r--r--testsuite/test_blank_lines.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuite/test_blank_lines.py b/testsuite/test_blank_lines.py
index 2b37ad1..e239f8b 100644
--- a/testsuite/test_blank_lines.py
+++ b/testsuite/test_blank_lines.py
@@ -139,7 +139,6 @@ class AFarEnoughClass(object):
pass
""")
self.assertEqual([
- 'E302:4:1', # some_function
'E302:7:1', # another_function
'E302:14:1', # SomeCloseClass
], result)
@@ -438,7 +437,7 @@ def some_function():
def test_top_level_fewer_blank_lines(self):
"""
- It will trigger an error when less 2 blank lines are found
+ It will trigger an error when less 3 blank lines are found
before top level definitions.
"""
result = self.check("""# First comment line.
@@ -471,7 +470,6 @@ class AFarEnoughClass(object):
pass
""")
self.assertEqual([
- 'E302:5:1', # some_function
'E302:9:1', # another_function
'E302:17:1', # SomeCloseClass
], result)