Rename shadowed function

This commit is contained in:
Florian Bruhin 2016-06-06 09:06:49 +02:00
parent 23bcc35ebd
commit 164be08627

View File

@ -46,7 +46,7 @@ def set_up_editor_replacement(quteproc, httpbin, tmpdir, text, replacement):
@bdd.when(bdd.parsers.parse('I set up a fake editor returning "{text}"'))
def set_up_editor_replacement(quteproc, httpbin, tmpdir, text):
def set_up_editor(quteproc, httpbin, tmpdir, text):
"""Set up general->editor to a small python script inserting a text."""
script = tmpdir / 'script.py'
script.write(textwrap.dedent("""