From 4314608361014c4e376ac160f6097c0af56ee437 Mon Sep 17 00:00:00 2001 From: Anthony VEREZ Date: Wed, 19 Sep 2012 15:58:28 +0200 Subject: fix R0801 similarities bug. Closes #63424 --- test/unittest_lint.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/unittest_lint.py') 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()]) -- cgit v1.2.1