Skip to content

Commit

Permalink
Fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-intel committed Oct 3, 2024
1 parent 489734b commit c65d095
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conda_lock/src_parser/pyproject_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,15 +548,17 @@ def parse_python_requirement(
... mapping_url=DEFAULT_MAPPING_URL,
... ) # doctest: +NORMALIZE_WHITESPACE
PathDependency(name='mypkg', manager='pip', category='main',
extras=[], markers=None, path='/path/to/some-package', is_directory=False)
extras=[], markers=None, path='/path/to/some-package', is_directory=False,
subdirectory=None)
>>> parse_python_requirement(
... "mypkg @ file:///path/to/some-package",
... manager="pip",
... mapping_url=DEFAULT_MAPPING_URL,
... ) # doctest: +NORMALIZE_WHITESPACE
PathDependency(name='mypkg', manager='pip', category='main',
extras=[], markers=None, path='/path/to/some-package', is_directory=False)
extras=[], markers=None, path='/path/to/some-package', is_directory=False,
subdirectory=None)
"""
if ";" in requirement:
requirement, markers = (s.strip() for s in requirement.rsplit(";", 1))
Expand Down

0 comments on commit c65d095

Please sign in to comment.