summaryrefslogtreecommitdiff
path: root/testing/code
diff options
context:
space:
mode:
authorAndras Tim <andras.tim@gmail.com>2017-07-17 01:25:09 +0200
committerAndras Tim <andras.tim@gmail.com>2017-07-17 01:44:23 +0200
commit17a21d540bb7d5e8fc2da115b29e6f5c0c966b43 (patch)
tree578320ce236c8e508e21f23e5977f565cd81654d /testing/code
parent9bad9b53d8a7399cb2f72f9e5cf399488a065a3d (diff)
downloadpytest-17a21d540bb7d5e8fc2da115b29e6f5c0c966b43.tar.gz
Fixed E301 flake8 errors
expected 1 blank line, found 0
Diffstat (limited to 'testing/code')
-rw-r--r--testing/code/test_excinfo.py5
-rw-r--r--testing/code/test_source.py1
2 files changed, 6 insertions, 0 deletions
diff --git a/testing/code/test_excinfo.py b/testing/code/test_excinfo.py
index b73ef5232..db0f263d3 100644
--- a/testing/code/test_excinfo.py
+++ b/testing/code/test_excinfo.py
@@ -33,14 +33,19 @@ class TWMock(object):
def __init__(self):
self.lines = []
self.is_writing = False
+
def sep(self, sep, line=None):
self.lines.append((sep, line))
+
def write(self, msg, **kw):
self.lines.append((TWMock.WRITE, msg))
+
def line(self, line, **kw):
self.lines.append(line)
+
def markup(self, text, **kw):
return text
+
def get_write_msg(self, idx):
flag, msg = self.lines[idx]
assert flag == TWMock.WRITE
diff --git a/testing/code/test_source.py b/testing/code/test_source.py
index a089db054..1f251f2a0 100644
--- a/testing/code/test_source.py
+++ b/testing/code/test_source.py
@@ -127,6 +127,7 @@ class TestAccesses(object):
def g(x):
pass
""")
+
def test_getrange(self):
x = self.source[0:2]
assert x.isparseable()