diff options
author | Anthony VEREZ <anthony.verez.external@cassidian.com> | 2012-09-19 15:58:28 +0200 |
---|---|---|
committer | Anthony VEREZ <anthony.verez.external@cassidian.com> | 2012-09-19 15:58:28 +0200 |
commit | 4314608361014c4e376ac160f6097c0af56ee437 (patch) | |
tree | c448e65c7bc6d6f1a429e8c8ccf33f9126138102 /test/unittest_lint.py | |
parent | fc36a2c8ecb64dedabda0530ad1d05731693ee3f (diff) | |
download | pylint-4314608361014c4e376ac160f6097c0af56ee437.tar.gz |
fix R0801 similarities bug. Closes #63424
Diffstat (limited to 'test/unittest_lint.py')
-rw-r--r-- | test/unittest_lint.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/unittest_lint.py b/test/unittest_lint.py index 6f8aacb..2ccc7c9 100644 --- a/test/unittest_lint.py +++ b/test/unittest_lint.py @@ -1,4 +1,4 @@ -# Copyright (c) 2003-2007 LOGILAB S.A. (Paris, FRANCE). +# Copyright (c) 2003-2012 LOGILAB S.A. (Paris, FRANCE). # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later @@ -240,8 +240,7 @@ class PyLinterTC(TestCase): self.assertFalse(any(name in checker_names for name in should_not)) def test_disable_similar(self): - # XXX we have to disable them both, that's no good - self.linter.set_option('reports', False) + self.linter.set_option('disable', 'RP0801') self.linter.set_option('disable', 'R0801') self.assertFalse('similarities' in [c.name for c in self.linter.prepare_checkers()]) |