Skip to content

Commit 7a4c462

Browse files
committed
skip testing test_checked_session.py if pydantic is not installed
1 parent 348bf1a commit 7a4c462

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

larray/tests/test_checked_session.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import pytest
2-
import pickle
32

3+
try:
4+
import pydantic
5+
except ImportError:
6+
pytestmark = pytest.skip("pydantic is required for testing Checked* classes")
7+
8+
import pickle
49
import numpy as np
510

611
from larray import (CheckedSession, CheckedArray, Axis, AxisCollection, Group, Array,

0 commit comments

Comments
 (0)