Skip to content

Commit 851d543

Browse files
committed
scipy.numpy handling in tests
1 parent b802c03 commit 851d543

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tests/test_analysis.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"""
1212

1313
import pytest
14-
import numpy as np
14+
15+
np = pytest.importorskip("numpy")
16+
scipy = pytest.importorskip("scipy")
17+
1518
from numpy.testing import assert_allclose
1619

1720
from knowledgecomplex.schema import SchemaBuilder, vocab

tests/test_partition.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
"""
1313

1414
import pytest
15-
import numpy as np
15+
16+
np = pytest.importorskip("numpy")
17+
scipy = pytest.importorskip("scipy")
18+
1619
from numpy.testing import assert_allclose
1720

1821
from knowledgecomplex.schema import SchemaBuilder, vocab

0 commit comments

Comments
 (0)