Skip to content

CI: Fix pyreadstat upgrade change #55653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 23, 2023
Merged
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
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