Skip to content

Commit 86b1b7e

Browse files
committed
Skip pytables test
1 parent ea26faa commit 86b1b7e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/tests/io/pytables/test_append.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
import pytest
77

88
from pandas._libs.tslibs import Timestamp
9+
from pandas.compat import (
10+
PY312,
11+
is_platform_linux,
12+
)
913

1014
import pandas as pd
1115
from pandas import (
@@ -145,6 +149,10 @@ def test_append_series(setup_path):
145149
mi.set_index(["C", "B"], inplace=True)
146150
s = mi.stack()
147151
s.index = s.index.droplevel(2)
152+
153+
if not PY312 and is_platform_linux():
154+
pytest.skip("incorrect MultiIndex on linux + python < 3.12")
155+
148156
store.append("mi", s)
149157
tm.assert_series_equal(store["mi"], s, check_index_type=True)
150158

0 commit comments

Comments
 (0)