mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
fix(langchain-classic): pass default to config.getoption (#34034)
Fixes #34033 --------- Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
@@ -80,8 +80,8 @@ def pytest_collection_modifyitems(config: pytest.Config, items: Sequence[pytest.
|
||||
# Used to avoid repeated calls to `util.find_spec`
|
||||
required_pkgs_info: dict[str, bool] = {}
|
||||
|
||||
only_extended = config.getoption("--only-extended") or False
|
||||
only_core = config.getoption("--only-core") or False
|
||||
only_extended = config.getoption("--only-extended", default=False)
|
||||
only_core = config.getoption("--only-core", default=False)
|
||||
|
||||
if only_extended and only_core:
|
||||
msg = "Cannot specify both `--only-extended` and `--only-core`."
|
||||
|
||||
Reference in New Issue
Block a user