Add a utils.unused()
This commit is contained in:
parent
e65b70ba37
commit
b1894ed7e0
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user