File pytest-args.patch of Package python-langchain-text-splitters

Index: langchain_text_splitters-0.3.8/tests/unit_tests/conftest.py
===================================================================
--- langchain_text_splitters-0.3.8.orig/tests/unit_tests/conftest.py
+++ langchain_text_splitters-0.3.8/tests/unit_tests/conftest.py
@@ -41,8 +41,8 @@ def pytest_collection_modifyitems(config
     # 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", False)
+    only_core = config.getoption("--only-core", False)
 
     if only_extended and only_core:
         raise ValueError("Cannot specify both `--only-extended` and `--only-core`.")
openSUSE Build Service is sponsored by