Skip to content

Commit

Permalink
Add a test capturing the desired expectation, marked as xfail for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 11, 2024
1 parent f61e452 commit 0c804aa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions setuptools/tests/test_develop.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import sys
import subprocess
import pathlib
import platform

from setuptools.command import test
Expand Down Expand Up @@ -82,6 +83,18 @@ def test_console_scripts(self, tmpdir):
cmd.run()
# assert '0.0' not in foocmd_text

@pytest.mark.xfail(reason="legacy behavior retained for compatibility #4167")
def test_egg_link_filename(self):
settings = dict(
name='Foo $$$ Bar_baz-bing',
)
dist = Distribution(settings)
cmd = develop(dist)
cmd.ensure_finalized()
link = pathlib.Path(cmd.egg_link)
assert link.suffix == '.egg-link'
assert link.stem == 'Foo_Bar_baz_bing'


class TestResolver:
"""
Expand Down

0 comments on commit 0c804aa

Please sign in to comment.