Skip to content

Commit f7f67ad

Browse files
authored
CI/TST: xfail git test failure on 32 bit job (#46842) (#46857)
* CI/TST: xfail git test failure on 32 bit job * Add reason kwarg * Ensure docker image has PANDAS_CI=1 (cherry picked from commit 976404b)
1 parent d1717e9 commit f7f67ad

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

azure-pipelines.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ jobs:
4848
pip install cython numpy python-dateutil pytz pytest pytest-xdist pytest-asyncio>=0.17 hypothesis && \
4949
python setup.py build_ext -q -j2 && \
5050
python -m pip install --no-build-isolation -e . && \
51-
pytest -m 'not slow and not network and not clipboard' pandas --junitxml=test-data.xml"
51+
export PANDAS_CI=1 && \
52+
pytest -m 'not slow and not network and not clipboard and not single_cpu' pandas --junitxml=test-data.xml"
5253
displayName: 'Run 32-bit manylinux2014 Docker Build / Tests'
5354
5455
- task: PublishTestResults@2

pandas/tests/test_common.py

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
import numpy as np
66
import pytest
77

8+
from pandas.compat import (
9+
IS64,
10+
is_ci_environment,
11+
)
12+
813
import pandas as pd
914
from pandas import Series
1015
import pandas._testing as tm
@@ -157,6 +162,9 @@ def test_standardize_mapping():
157162
assert isinstance(com.standardize_mapping(dd), partial)
158163

159164

165+
@pytest.mark.xfail(
166+
is_ci_environment() and not IS64, reason="Failing on 32 bit Python CI job"
167+
)
160168
def test_git_version():
161169
# GH 21295
162170
git_version = pd.__git_version__

pandas/tests/util/test_show_versions.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
import pytest
66

7-
from pandas.compat import is_numpy_dev
7+
from pandas.compat import (
8+
IS64,
9+
is_ci_environment,
10+
is_numpy_dev,
11+
)
812
from pandas.util._print_versions import (
913
_get_dependency_info,
1014
_get_sys_info,
@@ -77,6 +81,9 @@ def test_show_versions_console_json(capsys):
7781
assert result == expected
7882

7983

84+
@pytest.mark.xfail(
85+
is_ci_environment() and not IS64, reason="Failing on 32 bit Python CI job"
86+
)
8087
def test_show_versions_console(capsys):
8188
# gh-32041
8289
# gh-32041

0 commit comments

Comments
 (0)