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 + )