Skip to content

Commit 2ff38a1

Browse files
committed
fix import or skip for pandas
1 parent 975567c commit 2ff38a1

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
@@ -22,7 +22,7 @@ def test_succeeds_func_text():
2222

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

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

0 commit comments

Comments
 (0)