Fixed E303 flake8 errors

too many blank lines (3)
This commit is contained in:
Andras Tim
2017-07-17 01:25:09 +02:00
parent b840622819
commit 7248b759e8
32 changed files with 1 additions and 70 deletions

View File

@@ -467,7 +467,6 @@ class TestFormattedExcinfo(object):
'E AssertionError'
]
def test_repr_source_not_existing(self):
pr = FormattedExcinfo()
co = compile("raise ValueError()", "", "exec")
@@ -553,14 +552,12 @@ raise ValueError()
if py.std.sys.version_info[0] >= 3:
assert repr.chain[0][0].reprentries[0].lines[0] == "> ???"
fail = py.error.ENOENT # noqa
repr = pr.repr_excinfo(excinfo)
assert repr.reprtraceback.reprentries[0].lines[0] == "> ???"
if py.std.sys.version_info[0] >= 3:
assert repr.chain[0][0].reprentries[0].lines[0] == "> ???"
def test_repr_local(self):
p = FormattedExcinfo(showlocals=True)
loc = {'y': 5, 'z': 7, 'x': 3, '@x': 2, '__builtins__': {}}

View File

@@ -642,7 +642,6 @@ finally:
assert str(source) == " raise IndexError(1)"
class TestIf(object):
pytestmark = astonly
source = """\