summaryrefslogtreecommitdiff
path: root/test/unittest_lint.py
diff options
context:
space:
mode:
authorAnthony VEREZ <anthony.verez.external@cassidian.com>2012-09-19 15:58:28 +0200
committerAnthony VEREZ <anthony.verez.external@cassidian.com>2012-09-19 15:58:28 +0200
commit4314608361014c4e376ac160f6097c0af56ee437 (patch)
treec448e65c7bc6d6f1a429e8c8ccf33f9126138102 /test/unittest_lint.py
parentfc36a2c8ecb64dedabda0530ad1d05731693ee3f (diff)
downloadpylint-4314608361014c4e376ac160f6097c0af56ee437.tar.gz
fix R0801 similarities bug. Closes #63424
Diffstat (limited to 'test/unittest_lint.py')
-rw-r--r--test/unittest_lint.py5
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()])