summaryrefslogtreecommitdiff
path: root/pylint/test/test_functional.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-05-08 11:33:17 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-05-08 11:33:17 +0300
commit528984e3242831cce02303344a61ec1ea5120471 (patch)
tree898b3627a8adb804122b6598b1f744596bfb730f /pylint/test/test_functional.py
parent28a2583708f2ca51d3d237dd69e91b91aafdafd2 (diff)
downloadpylint-528984e3242831cce02303344a61ec1ea5120471.tar.gz
Fix the implementation of except_implementations, it was busted due to the fact that methods were compared to strings.
Diffstat (limited to 'pylint/test/test_functional.py')
-rw-r--r--pylint/test/test_functional.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/test/test_functional.py b/pylint/test/test_functional.py
index f9e33fa..ddf737d 100644
--- a/pylint/test/test_functional.py
+++ b/pylint/test/test_functional.py
@@ -246,11 +246,11 @@ class LintModuleTest(unittest.TestCase):
self.skipTest('Requires %s to be present.' % (','.join(missing),))
if self._test_file.options['except_implementations']:
implementations = [
- item.strip for item in
+ item.strip() for item in
self._test_file.options['except_implementations'].split(",")
]
implementation = platform.python_implementation()
- if implementation not in implementations:
+ if implementation in implementations:
self.skipTest(
'Test cannot run with Python implementation %r'
% (implementation, ))