Skip to content

Commit f4beb59

Browse files
authored
fix pandas test regression (#982)
1 parent fb5634c commit f4beb59

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/main.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,17 @@ jobs:
154154
pip install pytest-localserver pytest-xdist pytest-asyncio
155155
pip install meson-python versioneer # Needed for pandas build
156156
python setup.py build_ext --inplace
157+
pip uninstall -y pandas # remove site-packages version
157158
python -m pip install ./pandas --no-build-isolation -C compile-args="-j4"
158159
159160
- name: Run Tests
160161
shell: bash -l {0}
161162
run: |
162-
pytest -v fastparquet/ # fastparquet test suite against dev pandas
163-
pytest --verbose pandas/pandas/tests/io/test_parquet.py
163+
PY_IGNORE_IMPORTMISMATCH=1 pytest -v fastparquet/ # fastparquet test suite against dev pandas
164+
cd pandas
165+
PY_IGNORE_IMPORTMISMATCH=1 pytest --verbose pandas/tests/io/test_parquet.py -o xfail_strict=False
164166
# Test parquet with different filesystems
165-
pytest --verbose pandas/pandas/tests/io/test_gcs.py pandas/pandas/tests/io/test_fsspec.py -k "parquet" -o xfail_strict=False
167+
PY_IGNORE_IMPORTMISMATCH=1 pytest --verbose pandas/tests/io/test_gcs.py pandas/tests/io/test_fsspec.py -k "parquet" -o xfail_strict=False
166168
167169
win:
168170
name: win

fastparquet/test/test_dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_timestamps():
132132

133133

134134
def test_pandas_hive_serialization(tmpdir):
135-
parquet_dir = tmpdir.join("test.par")
135+
parquet_dir = str(tmpdir.join("test.par"))
136136
column = "data"
137137
df = pd.DataFrame(
138138
columns=[column], data=[("42",), ("",), ("0",), ("1",), ("0.0",)]

0 commit comments

Comments
 (0)