Skip to content

Commit

Permalink
Allow pandas to fail to import in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Dec 8, 2023
1 parent 6312bce commit 00dd7f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from typing import Any, Dict, List

import numpy as np
import pandas as pd
import pytest

from stanio.json import dump_stan_json, write_stan_json
Expand Down Expand Up @@ -75,6 +74,7 @@ def test_none(TMPDIR) -> None:


def test_pandas(TMPDIR) -> None:
pd = pytest.importorskip("pandas")
arr = np.repeat(3, 4)
series = pd.Series(arr)
dict_vec_pd = {"a": series}
Expand Down

0 comments on commit 00dd7f4

Please sign in to comment.