Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class TestDataFrame:
def test_type(self):
with pytest.raises(
TypeError,
match="df must be a <class 'pandas.core.frame.DataFrame'> instance",
match=f"df must be a {pd.DataFrame} instance",
):
_check_dataframe(1, {"one"}, "df")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_genetic_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_input_type(self, sample_ts, sample_df):
tstrait.genetic_value(ts=1, trait_df=sample_df)
with pytest.raises(
TypeError,
match="trait_df must be a <class 'pandas.core.frame.DataFrame'> instance",
match=f"trait_df must be a {pd.DataFrame} instance",
):
tstrait.genetic_value(ts=sample_ts, trait_df=1)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_simulate_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class TestInput:
def test_input_type(self):
with pytest.raises(
TypeError,
match="genetic_df must be a <class 'pandas.core.frame.DataFrame'> instance",
match=f"genetic_df must be a {pd.DataFrame} instance",
):
tstrait.sim_env(genetic_df=1, h2=0.3)

Expand Down
Loading
Loading