[PATCH 07/11] Disable a pointless override warning.
Chris Lumens
clumens at redhat.com
Thu Apr 23 18:54:14 UTC 2015
This is a valid warning, but only on python3. On python2, the default
is False. I don't want to crud up the code with a bunch of conditionals
for stuff like this.
---
tests/util_test.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/util_test.py b/tests/util_test.py
index 13b8d06..fe7a841 100644
--- a/tests/util_test.py
+++ b/tests/util_test.py
@@ -7,7 +7,9 @@ from blivet import util
class MiscTest(unittest.TestCase):
- longMessage = True
+ # Disable this warning, which will only be triggered on python3. For
+ # python2, the default is False.
+ longMessage = True # pylint: disable=pointless-class-attribute-override
def test_power_of_two(self):
self.assertFalse(util.power_of_two(None))
--
2.2.2
More information about the anaconda-patches
mailing list