Make pylint happy for test_editor_bdd.

windows has no SIGUSR1, but we don't run this on windows anyways
for posix, there IS a member so we need to ignore useless-suppression
This commit is contained in:
Ryan Roden-Corrent 2017-12-01 08:41:08 -05:00
parent 1102ae4d7e
commit 3cfa0f7586

View File

@ -94,4 +94,7 @@ def kill_editor_wait(quteproc, server, tmpdir):
"""Kill the waiting editor.""" """Kill the waiting editor."""
pidfile = tmpdir / 'editor_pid' pidfile = tmpdir / 'editor_pid'
pid = int(pidfile.read()) pid = int(pidfile.read())
# windows has no SIGUSR1, but we don't run this on windows anyways
# for posix, there IS a member so we need to ignore useless-suppression
# pylint: disable=no-member,useless-suppression
os.kill(pid, signal.SIGUSR1) os.kill(pid, signal.SIGUSR1)