Skip to content

Commit

Permalink
Add a failing test covering the missed expectation.
Browse files Browse the repository at this point in the history
Ref #4480
  • Loading branch information
jaraco committed Jul 18, 2024
1 parent f2a6bb1 commit 9ecec0e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions setuptools/tests/test_setuptools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Tests for the 'setuptools' package"""

import re
import sys
import os
import distutils.core
Expand Down Expand Up @@ -315,3 +316,14 @@ 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
)

0 comments on commit 9ecec0e

Please sign in to comment.