Skip to content

Commit 0c804aa

Browse files
committed
Add a test capturing the desired expectation, marked as xfail for now.
1 parent f61e452 commit 0c804aa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

setuptools/tests/test_develop.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
import sys
55
import subprocess
6+
import pathlib
67
import platform
78

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

86+
@pytest.mark.xfail(reason="legacy behavior retained for compatibility #4167")
87+
def test_egg_link_filename(self):
88+
settings = dict(
89+
name='Foo $$$ Bar_baz-bing',
90+
)
91+
dist = Distribution(settings)
92+
cmd = develop(dist)
93+
cmd.ensure_finalized()
94+
link = pathlib.Path(cmd.egg_link)
95+
assert link.suffix == '.egg-link'
96+
assert link.stem == 'Foo_Bar_baz_bing'
97+
8598

8699
class TestResolver:
87100
"""

0 commit comments

Comments
 (0)