Skip to content

Commit 21ea86d

Browse files
Debian Science Teamrebecca-palmer
Debian Science Team
authored andcommitted
Ignore pytables test failures with Python 3.12
The combined xfails are because two separate xfails where only one has run=False may run, which is a problem when the run=False exists to avoid a crash - see 1.5.3+dfsg-8 armhf build log Bug-Debian: https://bugs.debian.org/1055801 Bug-Ubuntu: https://launchpad.net/ubuntu/+bug/2043895 Author: Rebecca N. Palmer <[email protected]> Forwarded: no Gbp-Pq: Name pytables_python3p12.patch
1 parent 48e698b commit 21ea86d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

pandas/tests/io/pytables/test_append.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ def test_append_all_nans(setup_path):
286286
tm.assert_frame_equal(store["df2"], df, check_index_type=True)
287287

288288

289-
@pytest.mark.xfail(condition=is_crashing_arch,reason="https://bugs.debian.org/790925",strict=False,run=False)
289+
from pandas.compat import PY312
290+
@pytest.mark.xfail(condition=PY312 or is_crashing_arch, reason="https://bugs.debian.org/1055801 and https://bugs.debian.org/790925",raises=ValueError,strict=False, run=not is_crashing_arch)
290291
def test_append_frame_column_oriented(setup_path):
291292
with ensure_clean_store(setup_path) as store:
292293
# column oriented

pandas/tests/io/pytables/test_select.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ def test_select(setup_path):
168168
tm.assert_frame_equal(expected, result)
169169

170170

171+
from pandas.compat import PY312
172+
@pytest.mark.xfail(condition=PY312, reason="python3.12 https://bugs.debian.org/1055801",raises=ValueError,strict=False)
171173
def test_select_dtypes(setup_path):
172174
with ensure_clean_store(setup_path) as store:
173175
# with a Timestamp data column (GH #2637)
@@ -607,6 +609,7 @@ def test_select_iterator_many_empty_frames(setup_path):
607609
assert len(results) == 0
608610

609611

612+
@pytest.mark.xfail(condition=PY312, reason="python3.12 https://bugs.debian.org/1055801",raises=TypeError,strict=False)
610613
def test_frame_select(setup_path):
611614
df = DataFrame(
612615
np.random.default_rng(2).standard_normal((10, 4)),

pandas/tests/io/pytables/test_store.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,8 @@ def test_start_stop_fixed(setup_path):
884884
df.iloc[8:10, -2] = np.nan
885885

886886

887-
@pytest.mark.xfail(condition=is_crashing_arch,reason="https://bugs.debian.org/790925",strict=False,run=False)
887+
from pandas.compat import PY312
888+
@pytest.mark.xfail(condition=PY312 or is_crashing_arch, reason="https://bugs.debian.org/1055801 and https://bugs.debian.org/790925",raises=ValueError,strict=False, run=not is_crashing_arch)
888889
def test_select_filter_corner(setup_path):
889890
df = DataFrame(np.random.default_rng(2).standard_normal((50, 100)))
890891
df.index = [f"{c:3d}" for c in df.index]

0 commit comments

Comments
 (0)