Skip to content

Commit 55584f7

Browse files
authored
TST: Skip HDF5 test if no tables
1 parent 40ab14a commit 55584f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_pytest_arraydiff.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def test_succeeds_func_text():
2424
@pytest.mark.skipif(not NUMPY_LT_2_0, reason="AttributeError: `np.unicode_` was removed in the NumPy 2.0 release. Use `np.str_` instead.")
2525
@pytest.mark.array_compare(file_format='pd_hdf', reference_dir=reference_dir)
2626
def test_succeeds_func_pdhdf():
27+
pytest.importorskip('tables') # Need this "optional" dependency
2728
pd = pytest.importorskip('pandas')
2829
return pd.DataFrame(data=np.arange(20, dtype='int64'),
2930
columns=['test_data'])

0 commit comments

Comments
 (0)