From 01bcc6b5389e371908ed6370263ea0e8cf8b8566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Sat, 25 Jun 2022 09:36:53 +0200 Subject: [PATCH] tests: xfail test_pip_install_no_binary on Python 3.7 The test case fails due to the new release of setuptools_scm, which now depends on importlib-metadata for 'python_version < "3.8"'. Due to the fact that importlib-metadata itself depends on setuptools_scm, it's not possible anymore to "pip install --no-binary importlib-metadata" on Python 3.7. --- tests/integration/test_pep517.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/integration/test_pep517.py b/tests/integration/test_pep517.py index d042ea5e7..07e8d3bb0 100644 --- a/tests/integration/test_pep517.py +++ b/tests/integration/test_pep517.py @@ -1,5 +1,7 @@ from __future__ import annotations +import sys + from pathlib import Path from typing import TYPE_CHECKING @@ -75,6 +77,12 @@ def test_pip_wheel_build(temporary_directory: Path, project_source_root: Path) - assert len(wheels) == 1 +@pytest.mark.xfail( + sys.version_info < (3, 8), + # see https://github.com/python/importlib_metadata/issues/392 + reason="importlib-metadata can't be installed with --no-binary anymore", + strict=True, +) def test_pip_install_no_binary(python: str, project_source_root: Path) -> None: subprocess_run( python,