Skip to content

Commit

Permalink
Add test capturing missed expectation on extras. Ref #369.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 26, 2022
1 parent 590e31d commit b4661fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions importlib_metadata/__init__.py
Expand Up @@ -157,6 +157,15 @@ class EntryPoint(DeprecatedTuple):
See `the packaging docs on entry points
<https://packaging.python.org/specifications/entry-points/>`_
for more information.
>>> ep = EntryPoint(
... name=None, group=None, value='package.module:attr [extra1, extra2]')
>>> ep.module
'package.module'
>>> ep.attr
'attr'
>>> ep.extras
['extra1', 'extra2']
"""

pattern = re.compile(
Expand Down

0 comments on commit b4661fd

Please sign in to comment.