[master 1/1] Filter GLib.GError instead of GLib.Error in pylint false positives.
mulkieran
installerbot-noreply at redhat.com
Wed May 13 16:24:28 UTC 2015
From: mulhern <amulhern at redhat.com>
GError and Error are just aliases of each other, and GError is more
distinctive, thus a better choice for filtering so long as it is
used always in place of Error.
Should have gone in with commit 3f0aa449e42bc64da78e2ff8c0553b4526deed00.
Signed-off-by: mulhern <amulhern at redhat.com>
---
tests/pylint/runpylint.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/pylint/runpylint.py b/tests/pylint/runpylint.py
index 4abc9a2..64badd4 100755
--- a/tests/pylint/runpylint.py
+++ b/tests/pylint/runpylint.py
@@ -9,7 +9,7 @@ def __init__(self):
PocketLintConfig.__init__(self)
self.falsePositives = [ FalsePositive(r"BTRFSVolumeDevice._create: Instance of 'DeviceFormat' has no 'label' member"),
- FalsePositive(r"Catching an exception which doesn't inherit from BaseException: (BlockDev|DM|Crypto|Swap|LVM|Btrfs|MDRaid|)Error$"),
+ FalsePositive(r"Catching an exception which doesn't inherit from BaseException: (BlockDev|DM|Crypto|Swap|LVM|Btrfs|MDRaid|G)Error$"),
FalsePositive(r"Function 'run_program' has no 'called' member"),
FalsePositive(r"(PartitioningTestCase|PartitionDeviceTestCase).*: Instance of 'DeviceFormat' has no .* member"),
FalsePositive(r"Instance of 'int' has no .* member"),
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/994bf2baf930596002563bd599fea624e5579ba1
More information about the anaconda-patches
mailing list