tests: keep numpy being optional

Ref: https://github.com/pytest-dev/pytest/pull/5950#discussion_r335254774
This commit is contained in:
Daniel Hahler 2019-10-16 23:45:01 +02:00
parent 77a995ffad
commit 90dfee5da5
2 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,6 @@ def main():
"mock",
"nose",
"requests",
"numpy",
"xmlschema",
]
},

View File

@ -4190,6 +4190,8 @@ def test_indirect_fixture_does_not_break_scope(testdir):
def test_fixture_parametrization_nparray(testdir):
pytest.importorskip("numpy")
testdir.makepyfile(
"""
from numpy import linspace