@pytest.mark.skipif((numpy is None), reason='numpy is not installed')
def test_numpy_array_as_value(testdir):
    testdir.makepyfile("\n        import pytest\n        import numpy as np\n\n        @pytest.mark.parametrize(\n            'value',\n            [\n                np.arange(10, dtype=np.int64),\n                np.arange(10, dtype=np.int32),\n            ]\n        )\n        def test_bug(value):\n            assert isinstance(value, np.ndarray)\n    ")
    result = testdir.inline_run('-s')
    result.assertoutcome(passed=2)
@pytest.mark.skipif((numpy is None), reason='numpy is not installed')
def test_numpy_array_as_value(testdir):
    testdir.makepyfile("\n        import pytest\n        import numpy as np\n\n        @pytest.mark.parametrize(\n            'value',\n            [\n                np.arange(10, dtype=np.int64),\n                np.arange(10, dtype=np.int32),\n            ]\n        )\n        def test_bug(value):\n            assert isinstance(value, np.ndarray)\n    ")
    result = testdir.inline_run('-s')
    result.assertoutcome(passed=2)