From a32e1ca5ed41bd914876ebbd8963d923379c335a Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Wed, 15 Jul 2020 01:40:07 -0500 Subject: [PATCH] Add pylint ignores for spurious warnings about pytest and scipy to tests --- test/test_algorithm.py | 3 +++ test/test_array.py | 3 +++ test/test_clmath.py | 4 ++++ test/test_clrandom.py | 3 +++ test/test_wrapper.py | 3 +++ 5 files changed, 16 insertions(+) diff --git a/test/test_algorithm.py b/test/test_algorithm.py index 0360d6a3..38a91cef 100644 --- a/test/test_algorithm.py +++ b/test/test_algorithm.py @@ -24,6 +24,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ +# avoid spurious: pytest.mark.parametrize is not callable +# pylint: disable=not-callable + from six.moves import range, zip import numpy as np import numpy.linalg as la diff --git a/test/test_array.py b/test/test_array.py index 744f1240..a9b0b612 100644 --- a/test/test_array.py +++ b/test/test_array.py @@ -23,6 +23,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ +# avoid spurious: pytest.mark.parametrize is not callable +# pylint: disable=not-callable + import numpy as np import numpy.linalg as la import sys diff --git a/test/test_clmath.py b/test/test_clmath.py index 9c844016..74b40208 100644 --- a/test/test_clmath.py +++ b/test/test_clmath.py @@ -22,6 +22,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ +# avoid spurious: pytest.mark.parametrize is not callable +# avoid spurious: Module 'scipy.special' has no 'jn' member; maybe 'jv' +# pylint: disable=not-callable,no-member + from six.moves import range import math diff --git a/test/test_clrandom.py b/test/test_clrandom.py index b6b2094e..53de4821 100644 --- a/test/test_clrandom.py +++ b/test/test_clrandom.py @@ -22,6 +22,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ +# avoid spurious: pytest.mark.parametrize is not callable +# pylint: disable=not-callable + import numpy as np import pytest diff --git a/test/test_wrapper.py b/test/test_wrapper.py index 63c5e8a0..afc239d9 100644 --- a/test/test_wrapper.py +++ b/test/test_wrapper.py @@ -22,6 +22,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ +# avoid spurious: pytest.mark.parametrize is not callable +# pylint: disable=not-callable + from six.moves import range import numpy as np -- GitLab