Add a utils.unused()

This commit is contained in:
Florian Bruhin 2017-02-06 10:45:36 +01:00
parent e65b70ba37
commit b1894ed7e0
2 changed files with 9 additions and 0 deletions

View File

@ -871,3 +871,8 @@ def open_file(filename, cmdline=None):
.format(filename, [cmd] + args))
proc = guiprocess.GUIProcess(what='open-file')
proc.start_detached(cmd, args)
def unused(_arg):
"""Function which does nothing to avoid pylint complaining."""
pass

View File

@ -1029,3 +1029,7 @@ class TestOpenFile:
assert re.match(
r"Opening /foo/bar with the system application", result)
m.assert_called_with(QUrl('file:///foo/bar'))
def test_unused():
unused(None)