From 284e8afc5a481a1ac40405111058421a0c68c683 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 18 Jul 2024 09:14:31 -0400 Subject: [PATCH] Add a failing test covering the missed expectation. Ref #4480 --- setuptools/tests/test_setuptools.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/setuptools/tests/test_setuptools.py b/setuptools/tests/test_setuptools.py index 613a52d042..9b7285459a 100644 --- a/setuptools/tests/test_setuptools.py +++ b/setuptools/tests/test_setuptools.py @@ -1,5 +1,6 @@ """Tests for the 'setuptools' package""" +import re import sys import os import distutils.core @@ -315,3 +316,13 @@ def test_wheel_includes_cli_scripts(setuptools_wheel): contents = [f.replace(os.sep, '/') for f in zipfile.namelist()] assert any('cli-64.exe' in member for member in contents) + + +@pytest.mark.xfail(reason="#4480") +def test_wheel_includes_vendored_metadata(setuptools_wheel): + with ZipFile(setuptools_wheel) as zipfile: + contents = [f.replace(os.sep, '/') for f in zipfile.namelist()] + + assert any( + re.search(r'_vendor/.*\.dist-info/METADATA', member) for member in contents + )