tests: keep numpy being optional
Ref: https://github.com/pytest-dev/pytest/pull/5950#discussion_r335254774
This commit is contained in:
parent
77a995ffad
commit
90dfee5da5
1
setup.py
1
setup.py
|
@ -28,7 +28,6 @@ def main():
|
||||||
"mock",
|
"mock",
|
||||||
"nose",
|
"nose",
|
||||||
"requests",
|
"requests",
|
||||||
"numpy",
|
|
||||||
"xmlschema",
|
"xmlschema",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -4190,6 +4190,8 @@ def test_indirect_fixture_does_not_break_scope(testdir):
|
||||||
|
|
||||||
|
|
||||||
def test_fixture_parametrization_nparray(testdir):
|
def test_fixture_parametrization_nparray(testdir):
|
||||||
|
pytest.importorskip("numpy")
|
||||||
|
|
||||||
testdir.makepyfile(
|
testdir.makepyfile(
|
||||||
"""
|
"""
|
||||||
from numpy import linspace
|
from numpy import linspace
|
||||||
|
|
Loading…
Reference in New Issue