Remove duplicate test (tested above)
This commit is contained in:
parent
f102ccc8f0
commit
b8b9e8d41c
|
@ -405,21 +405,13 @@ def test_deindent():
|
||||||
|
|
||||||
assert deindent(["\tfoo", "\tbar"]) == ["foo", "bar"]
|
assert deindent(["\tfoo", "\tbar"]) == ["foo", "bar"]
|
||||||
|
|
||||||
def f():
|
source = """\
|
||||||
c = """while True:
|
|
||||||
pass
|
|
||||||
"""
|
|
||||||
|
|
||||||
lines = deindent(inspect.getsource(f).splitlines())
|
|
||||||
assert lines == [" def f():", ' c = """while True:', " pass", '"""']
|
|
||||||
|
|
||||||
source = """
|
|
||||||
def f():
|
def f():
|
||||||
def g():
|
def g():
|
||||||
pass
|
pass
|
||||||
"""
|
"""
|
||||||
lines = deindent(source.splitlines())
|
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):
|
def test_source_of_class_at_eof_without_newline(tmpdir):
|
||||||
|
|
Loading…
Reference in New Issue