Move scipy import into False clause

This commit is contained in:
Aayush Garg 2016-04-12 23:28:31 -07:00
Родитель 601c96ac7a
Коммит 9c492fb395
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -4,7 +4,6 @@ from ..graph import _tensor_to_text_format
import pytest import pytest
import scipy.sparse
# keeping things short # keeping things short
A = np.asarray A = np.asarray
@ -83,6 +82,8 @@ def test_tensor_conversion_dense(alias, idx, data, expected):
has_sequence_dimension=False) == expected has_sequence_dimension=False) == expected
if False: if False:
import scipy.sparse
@pytest.mark.parametrize("alias, data, expected", [ @pytest.mark.parametrize("alias, data, expected", [
('W', [A({})], ""), ('W', [A({})], ""),
('W', [{3: 1, 50: 1, 2: 0}, {1: -5}], """\ ('W', [{3: 1, 50: 1, 2: 0}, {1: -5}], """\