Skip to content

Commit

Permalink
fix parse_entry_point doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Apr 4, 2024
1 parent 2824e9e commit b669578
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions babelizer/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ def parse_entry_point(specifier: str) -> tuple[str, str, str]:
Examples
--------
>>> from babelizer.metadata import BabelMetadata
>>> BabelMetadata.parse_entry_point("Foo=bar:Baz")
>>> from babelizer._utils import parse_entry_point
>>> parse_entry_point("Foo=bar:Baz")
('Foo', 'bar', 'Baz')
>>> BabelMetadata.parse_entry_point("bar:Baz")
>>> parse_entry_point("bar:Baz")
Traceback (most recent call last):
...
babelizer.errors.ValidationError: bad entry point specifier (bar:Baz). specifier must be of the form name=module:class
Expand Down

0 comments on commit b669578

Please sign in to comment.