summaryrefslogtreecommitdiffstats
path: root/tests/pylint
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2011-07-29 11:28:31 -0400
committerChris Lumens <clumens@redhat.com>2011-08-01 10:02:29 -0400
commitde9a1d196f2164097d6519c2a4a7ec5393567445 (patch)
tree5d3e4eb3c0ce64d25e52ae354b6467bbe4196bfd /tests/pylint
parentca27378ad0229c66c3bbcbd6636f2e555c2d6db8 (diff)
downloadanaconda-de9a1d196f2164097d6519c2a4a7ec5393567445.tar.gz
anaconda-de9a1d196f2164097d6519c2a4a7ec5393567445.tar.xz
anaconda-de9a1d196f2164097d6519c2a4a7ec5393567445.zip
Disable E1103 (the "some types could not be inferred" message).
We hit this for every use of a pyanaconda.product value, so it's really just noise.
Diffstat (limited to 'tests/pylint')
-rw-r--r--tests/pylint/pylint-false-positives6
-rwxr-xr-xtests/pylint/runpylint.sh1
2 files changed, 1 insertions, 6 deletions
diff --git a/tests/pylint/pylint-false-positives b/tests/pylint/pylint-false-positives
index bde04b573..97f566ca8 100644
--- a/tests/pylint/pylint-false-positives
+++ b/tests/pylint/pylint-false-positives
@@ -26,12 +26,6 @@
^E1101:[ 0-9]*:.*: Instance of 'dict' has no 'Get' member$
^E1101:[ 0-9]*:FilteredCallbacks\..*set: Instance of 'FilteredCallbacks' has no 'notebook' member$
^E1101:[ 0-9]*:Anaconda\.backend: Instance of 'DefaultInstall' has no 'getBackend' member$
-^E1103:[ 0-9]*:.*: Instance of 'str' has no '.*' member \(but some types could not be inferred\)$
-^E1103:[ 0-9]*:execWithCapture: Instance of 'list' has no 'splitlines' member \(but some types could not be inferred\)$
-^E1103:[ 0-9]*:VncServer\.connectToView: Instance of 'list' has no 'startswith' member \(but some types could not be inferred\)$
-^E1103:[ 0-9]*:VncServer\.connectToView: Instance of 'list' has no 'endswith' member \(but some types could not be inferred\)$
-^E1103:[ 0-9]*:bindMountDevDirectory: Instance of 'DeviceFormat' has no 'mount' member \(but some types could not be inferred\)$
-^E1103:[ 0-9]*:DeviceTree.handleUdevDiskLabelFormat: Instance of 'DeviceFormat' has no 'partitions' member \(but some types could not be inferred\)$
^W0404:[ 0-9]*:runRescue: Reimport 'runPostScripts' \(imported line [0-9]*\)$
# Note this will become a real issue when we start supporting multiple netdevs
^W0631:[ 0-9]*:Network.write: Using possibly undefined loop variable 'dev'$
diff --git a/tests/pylint/runpylint.sh b/tests/pylint/runpylint.sh
index cdd5fc493..721a12259 100755
--- a/tests/pylint/runpylint.sh
+++ b/tests/pylint/runpylint.sh
@@ -54,6 +54,7 @@ for i in pyanaconda/storage pyanaconda/installclasses/*.py pyanaconda/iw/*.py py
--disable=W0511,W0403,W0703,W0622,W0614,W0401,W0142,W0613,W0621,W0141 \
--disable=W0102,W0201,W0221,W0702,W0602,W0603,W0604,W1001,W0223 \
--disable=W0231,W0232,W0233,W0404 \
+ --disable=E1103 \
$NON_STRICT_OPTIONS $i | \
egrep -v "`cat $FALSE_POSITIVES | tr '\n' '|'`" > pylint-tmp-log
if grep -q -v '************* Module ' pylint-tmp-log; then