Skip to content

Commit d7dfa90

Browse files
committed
Add test for loading entry points from a string. Ref #3103.
1 parent abbaacc commit d7dfa90

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

setuptools/_entry_points.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ def load(eps):
5353

5454
@load.register(str)
5555
def _(eps):
56+
r"""
57+
>>> ep, = load('[console_scripts]\nfoo=bar')
58+
>>> ep.group
59+
'console_scripts'
60+
>>> ep.name
61+
'foo'
62+
>>> ep.value
63+
'bar'
64+
"""
5665
return validate(metadata.EntryPoints._from_text(eps))
5766

5867

0 commit comments

Comments
 (0)