Skip to content

Commit dda1d30

Browse files
authored
test_dense_datetime Check If Pandas Is Installed (#1287)
1 parent eac06b4 commit dda1d30

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tiledb/tests/test_query_condition.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
import math
44
import numpy as np
55
from numpy.testing import assert_array_equal
6-
import pandas as pd
76
import string
87

98
import tiledb
109

11-
from tiledb.tests.common import DiskTestCase
10+
from tiledb.tests.common import DiskTestCase, has_pandas
1211

1312

1413
class QueryConditionTest(DiskTestCase):
@@ -612,7 +611,10 @@ def test_in_operator_dense(self):
612611
result = A.query(attr_cond=tiledb.QueryCondition("S in ['8']"))[:]
613612
assert len(self.filter_dense(result["S"], S_mask)) == 0
614613

614+
@pytest.mark.skipif(not has_pandas(), reason="pandas not installed")
615615
def test_dense_datetime(self):
616+
import pandas as pd
617+
616618
uri = self.path("query-filter-dense-datetime.tdb")
617619

618620
data = pd.DataFrame(

0 commit comments

Comments
 (0)