Skip to content

Commit

Permalink
test_ndarray.py - skip if numpy is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
idanmiara committed Nov 29, 2022
1 parent 7ea6cf2 commit e3dc5dc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/core/test_ndarray.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
from dataclasses import dataclass
from typing import Sequence, TypeVar

import numpy
import numpy.typing
import numpy.testing
try:
import numpy
import numpy.typing
import numpy.testing
except ImportError:
pytest.skip("numpy not available", allow_module_level=True)

from dcd import from_dict, Config
from tests.common import ndarray_support
Expand Down

0 comments on commit e3dc5dc

Please sign in to comment.