diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-30 14:46:55 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-30 14:46:55 +0200 |
commit | b72aa72ab2c40eb32e9300922bf211a7c78f6053 (patch) | |
tree | be67a136e4dd641df1e5632dbf2b85907ec11065 | |
parent | 67db583987def5ea5d6f100c363bbf44449422db (diff) | |
download | pylint-b72aa72ab2c40eb32e9300922bf211a7c78f6053.tar.gz |
Fix the tests to work on both Python versions.
-rw-r--r-- | pylint/test/functional/no_classmethod_decorator.py | 2 | ||||
-rw-r--r-- | pylint/test/functional/no_staticmethod_decorator.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pylint/test/functional/no_classmethod_decorator.py b/pylint/test/functional/no_classmethod_decorator.py index 2f91fde..b9e51cb 100644 --- a/pylint/test/functional/no_classmethod_decorator.py +++ b/pylint/test/functional/no_classmethod_decorator.py @@ -26,7 +26,7 @@ class MyClass(object): def helloworld(): """says hello""" - print 'hello world' + MyClass.new_class_method = classmethod(helloworld) diff --git a/pylint/test/functional/no_staticmethod_decorator.py b/pylint/test/functional/no_staticmethod_decorator.py index a64cd7c..9acc5d7 100644 --- a/pylint/test/functional/no_staticmethod_decorator.py +++ b/pylint/test/functional/no_staticmethod_decorator.py @@ -26,7 +26,7 @@ class MyClass(object): def helloworld(): """says hello""" - print 'hello world' + MyClass.new_static_method = staticmethod(helloworld) |