Skip to content

Commit 8ff5776

Browse files
authored
1 parent 3319811 commit 8ff5776

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

pandas/tests/io/test_pickle.py

-7
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,6 @@ def compare_element(result, expected, typ):
8585
legacy_dirname = os.path.join(os.path.dirname(__file__), "data", "legacy_pickle")
8686
files = glob.glob(os.path.join(legacy_dirname, "*", "*.pickle"))
8787

88-
if not len(files):
89-
# Probably is a wheel build(no data files), so skip the entire module
90-
pytest.skip(
91-
"Could not find legacy pickle files, skipping test_pickle.py tests",
92-
allow_module_level=True,
93-
)
94-
9588

9689
@pytest.fixture(params=files)
9790
def legacy_pickle(request, datapath):

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,8 @@ disable = [
359359
# sync minversion with pyproject.toml & install.rst
360360
minversion = "7.0"
361361
addopts = "--strict-markers --strict-config --capture=no --durations=30 --junitxml=test-data.xml"
362-
empty_parameter_set_mark = "fail_at_collect"
362+
# Pickle tests will fail when the pickle data files are not found if this is set to fail_at_collect
363+
empty_parameter_set_mark = "skip"
363364
xfail_strict = true
364365
testpaths = "pandas"
365366
doctest_optionflags = [

0 commit comments

Comments
 (0)