Skip to content

Commit 284e8af

Browse files
committed
Add a failing test covering the missed expectation.
Ref #4480
1 parent f2a6bb1 commit 284e8af

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

setuptools/tests/test_setuptools.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Tests for the 'setuptools' package"""
22

3+
import re
34
import sys
45
import os
56
import distutils.core
@@ -315,3 +316,13 @@ def test_wheel_includes_cli_scripts(setuptools_wheel):
315316
contents = [f.replace(os.sep, '/') for f in zipfile.namelist()]
316317

317318
assert any('cli-64.exe' in member for member in contents)
319+
320+
321+
@pytest.mark.xfail(reason="#4480")
322+
def test_wheel_includes_vendored_metadata(setuptools_wheel):
323+
with ZipFile(setuptools_wheel) as zipfile:
324+
contents = [f.replace(os.sep, '/') for f in zipfile.namelist()]
325+
326+
assert any(
327+
re.search(r'_vendor/.*\.dist-info/METADATA', member) for member in contents
328+
)

0 commit comments

Comments
 (0)