Skip to content

Commit

Permalink
server.server_job: Ignore pylint warning
Browse files Browse the repository at this point in the history
In this particular case, the unittest overrides the
mentioned functions with the purpose of mocking it,
so it's OK it is there. Therefore, taking another
step for a clean pylint quiet run, silence those
errors by appending the appropriate comments.

Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
  • Loading branch information
lmr committed Mar 28, 2013
1 parent 8436824 commit 42d7f76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/server_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ def __init__(self, control, args, resultdir, label, user, machines,


@classmethod
# The unittests will hide this method, well, for unittesting
# pylint: disable=E0202
def _find_base_directories(cls):
"""
Determine locations of autodir, clientdir and serverdir. Assumes
Expand All @@ -242,6 +244,8 @@ def _find_base_directories(cls):
return autodir, clientdir, serverdir


# The unittests will hide this method, well, for unittesting
# pylint: disable=E0202
def _find_resultdir(self, resultdir):
"""
Determine the location of resultdir. For server jobs we expect one to
Expand Down

0 comments on commit 42d7f76

Please sign in to comment.