Skip to content

Commit

Permalink
fix: force dtype for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff committed Sep 30, 2022
1 parent bd3f56a commit 2e6e8bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_timeseriesflattener/test_add_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,11 @@ def test_add_temporal_incident_binary_outcome():
for col in [
"outc_dichotomous_t2d_within_2_days_max_fallback_0",
]:
for df in (outcome_df, expected_df):
# Windows and Linux have different default dtypes for ints,
# which is not a meaningful error here. So we force the dtype.
if df[col].dtype == "int64":
df[col] = df[col].astype("int32")
pd.testing.assert_series_equal(outcome_df[col], expected_df[col])


Expand Down

0 comments on commit 2e6e8bf

Please sign in to comment.