Remove duplicate test (tested above)

This commit is contained in:
Anthony Sottile 2018-10-03 10:01:06 -07:00
parent f102ccc8f0
commit b8b9e8d41c
1 changed files with 2 additions and 10 deletions

View File

@ -405,21 +405,13 @@ def test_deindent():
assert deindent(["\tfoo", "\tbar"]) == ["foo", "bar"]
def f():
c = """while True:
pass
"""
lines = deindent(inspect.getsource(f).splitlines())
assert lines == [" def f():", ' c = """while True:', " pass", '"""']
source = """
source = """\
def f():
def g():
pass
"""
lines = deindent(source.splitlines())
assert lines == ["", "def f():", " def g():", " pass"]
assert lines == ["def f():", " def g():", " pass"]
def test_source_of_class_at_eof_without_newline(tmpdir):