Update src/_pytest/pathlib.py
Co-authored-by: Ran Benita <ran@unusedvar.com>
This commit is contained in:
parent
8bd67cceaf
commit
fedeb6b010
|
@ -788,9 +788,9 @@ def resolve_pkg_root_and_module_name(
|
||||||
|
|
||||||
|
|
||||||
def _is_namespace_package(module_path: Path) -> bool:
|
def _is_namespace_package(module_path: Path) -> bool:
|
||||||
# If the path has na __init__.py file, it means it is not
|
# If the path has an __init__.py file, it means it is not
|
||||||
# a namespace package:.
|
# a namespace package:
|
||||||
# https://packaging.python.org/en/latest/guides/packaging-namespace-packages.
|
# https://packaging.python.org/en/latest/guides/packaging-namespace-packages
|
||||||
if (module_path / "__init__.py").is_file():
|
if (module_path / "__init__.py").is_file():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue