_deprecate here is used with the very specific purpose
of decorating the unittest comparison methods that are
deprecated so unittest writers don't use them.

Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
---
 client/shared/test_utils/unittest.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/client/shared/test_utils/unittest.py 
b/client/shared/test_utils/unittest.py
index 8db9086..ce9a7cd 100755
--- a/client/shared/test_utils/unittest.py
+++ b/client/shared/test_utils/unittest.py
@@ -642,7 +642,8 @@ class TestCase(object):
 
     # These fail* assertion method names are pending deprecation and will
     # be a DeprecationWarning in 3.2; http://bugs.python.org/issue2578
-    def _deprecate(original_func):
+    # pylint: disable=E0213
+    def _deprecate(original_func): # @NoSelf
         def deprecated_func(*args, **kwargs):
             warnings.warn(
                 'Please use %s instead.' % original_func.__name__,
-- 
1.8.1.4

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to