summaryrefslogtreecommitdiff
path: root/pylint/test/functional/no_staticmethod_decorator.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/functional/no_staticmethod_decorator.py')
-rw-r--r--pylint/test/functional/no_staticmethod_decorator.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/pylint/test/functional/no_staticmethod_decorator.py b/pylint/test/functional/no_staticmethod_decorator.py
deleted file mode 100644
index d0e0effa4..000000000
--- a/pylint/test/functional/no_staticmethod_decorator.py
+++ /dev/null
@@ -1,35 +0,0 @@
-"""Checks static methods are declared with a decorator if within the class
-scope and if static method's argument is a member of the class
-"""
-
-# pylint: disable=too-few-public-methods, using-constant-test, no-method-argument, useless-object-inheritance
-
-class MyClass(object):
- """Some class"""
- def __init__(self):
- pass
-
- def smethod():
- """static method-to-be"""
- smethod = staticmethod(smethod) # [no-staticmethod-decorator]
-
- if True:
- smethod = staticmethod(smethod) # [no-staticmethod-decorator]
-
- @staticmethod
- def my_second_method():
- """correct static method definition"""
-
- def other_method():
- """some method"""
- smethod2 = staticmethod(other_method) # [no-staticmethod-decorator]
-
-def helloworld():
- """says hello"""
-
-
-MyClass.new_static_method = staticmethod(helloworld)
-
-class MyOtherClass(object):
- """Some other class"""
- _make = staticmethod(tuple.__new__)