Fix or ignore lints in tests

This commit is contained in:
Peter Law
2024-06-30 19:03:55 +01:00
parent 5c578e1899
commit 0fcb4468e7
12 changed files with 38 additions and 31 deletions

View File

@@ -206,6 +206,7 @@ def test_numpydoc_parameters_set_of_values():
assert 'capitalize' in names
assert 'numerator' in names
@pytest.mark.skipif(numpydoc_unavailable,
reason='numpydoc module is unavailable')
def test_numpydoc_parameters_set_single_value():
@@ -390,7 +391,8 @@ def test_numpydoc_yields():
@pytest.mark.skipif(numpydoc_unavailable or numpy_unavailable,
reason='numpydoc or numpy module is unavailable')
def test_numpy_returns():
s = dedent('''
s = dedent(
'''
import numpy
x = numpy.asarray([])
x.d'''
@@ -402,7 +404,8 @@ def test_numpy_returns():
@pytest.mark.skipif(numpydoc_unavailable or numpy_unavailable,
reason='numpydoc or numpy module is unavailable')
def test_numpy_comp_returns():
s = dedent('''
s = dedent(
'''
import numpy
x = numpy.array([])
x.d'''