forked from autotest/autotest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
During pylint checking, we've found: ************* Module server.test E0202:159:_sysinfo_logger.before_hook: An attribute inherited from _sysinfo_logger hide this method E0202:169:_sysinfo_logger.before_iteration_hook: An attribute inherited from _sysinfo_logger hide this method E0202:185:_sysinfo_logger.after_iteration_hook: An attribute inherited from _sysinfo_logger hide this method E0202:200:_sysinfo_logger.after_hook: An attribute inherited from _sysinfo_logger hide this method In fact, the way the class _sysinfo_logger was disabling before/after iteration hooks was by setting attributes set to None to hide the iteration hooks methods. We could do the same in a cleaner way by setting an attribute that can switch on/off the execution of the code present in these hook methods. So implement this and fix the pylint complaints. Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
- Loading branch information
Showing
1 changed file
with
34 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters