diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-05-08 11:33:17 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-05-08 11:33:17 +0300 |
commit | 528984e3242831cce02303344a61ec1ea5120471 (patch) | |
tree | 898b3627a8adb804122b6598b1f744596bfb730f /pylint/test/test_functional.py | |
parent | 28a2583708f2ca51d3d237dd69e91b91aafdafd2 (diff) | |
download | pylint-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.py | 4 |
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, )) |