From c65d095d8a3d131523dd5a75fc94d18bfe1f4959 Mon Sep 17 00:00:00 2001 From: Romain Cledat Date: Wed, 2 Oct 2024 10:21:01 -0700 Subject: [PATCH] Fix doc test --- conda_lock/src_parser/pyproject_toml.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conda_lock/src_parser/pyproject_toml.py b/conda_lock/src_parser/pyproject_toml.py index e137146cf..d66f5fff7 100644 --- a/conda_lock/src_parser/pyproject_toml.py +++ b/conda_lock/src_parser/pyproject_toml.py @@ -548,7 +548,8 @@ 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", @@ -556,7 +557,8 @@ 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) """ if ";" in requirement: requirement, markers = (s.strip() for s in requirement.rsplit(";", 1))