Skip to content

Commit

Permalink
CI: Fix pyreadstat upgrade change
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl committed Oct 23, 2023
1 parent 03a4981 commit 2aa36b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pandas/tests/io/test_spss.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import datetime
from pathlib import Path

import numpy as np
import pytest

import pandas as pd
import pandas._testing as tm
from pandas.util.version import Version

pyreadstat = pytest.importorskip("pyreadstat")

Expand Down Expand Up @@ -147,4 +149,11 @@ def test_spss_metadata(datapath):
"file_label": None,
"file_format": "sav/zsav",
}
if Version(pyreadstat.__version__) >= Version("1.2.4"):
metadata.update(
{
"creation_time": datetime.datetime(2015, 2, 6, 14, 33, 36),
"modification_time": datetime.datetime(2015, 2, 6, 14, 33, 36),
}
)
assert df.attrs == metadata

0 comments on commit 2aa36b9

Please sign in to comment.