Skip to content

Commit d9a257e

Browse files
authored
Mark PyPy test failing in CI as xfail (#1197)
1 parent 755b52a commit d9a257e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
env:
6262
COVERAGE_XML_PATH: ${{ runner.temp }}
6363
BABEL_TOX_EXTRA_DEPS: pytest-github-actions-annotate-failures
64-
LC_ALL: C # Python 3.10.16[pypy-7.3.19-final] in GHA failed with "unsupported locale setting"
6564
- uses: codecov/codecov-action@v5
6665
with:
6766
directory: ${{ runner.temp }}

tests/messages/test_setuptools_frontend.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ def test_extract_distutils_keyword_arg_388(kwarg, expected):
4545
assert set(cmdinst.add_comments) == {"Bar", "Foo"}
4646

4747

48+
@pytest.mark.xfail(
49+
# Python 3.10.16[pypy-7.3.19-final] in GHA fails with "unsupported locale setting"
50+
# in the subprocesses this test spawns. Hard to say why because it doesn't do that
51+
# locally.
52+
condition=(sys.implementation.name == "pypy" and "BABEL_TOX_INI_DIR" in os.environ),
53+
reason="Test will likely fail with 'unsupported locale setting' in subprocesses; see comment",
54+
)
4855
def test_setuptools_commands(tmp_path, monkeypatch):
4956
"""
5057
Smoke-tests all of the setuptools versions of the commands in turn.

0 commit comments

Comments
 (0)