Skip to content

Commit f068091

Browse files
committed
fix import or skip for pandas
1 parent 6f95734 commit f068091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pytest_arraydiff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_succeeds_func_text():
1919

2020
@pytest.mark.array_compare(file_format='pd_hdf', reference_dir=reference_dir)
2121
def test_succeeds_func_pdhdf():
22-
import pandas as pd
22+
pd = pytest.importorskip('pandas')
2323
return pd.DataFrame(data=np.arange(20), columns=['test_data'])
2424

2525
@pytest.mark.array_compare(file_format='fits', reference_dir=reference_dir)

0 commit comments

Comments
 (0)