Update src/_pytest/pathlib.py

Co-authored-by: Ran Benita <ran@unusedvar.com>
This commit is contained in:
Bruno Oliveira 2024-03-30 17:10:09 -03:00 committed by Bruno Oliveira
parent 8bd67cceaf
commit fedeb6b010
1 changed files with 3 additions and 3 deletions

View File

@ -788,9 +788,9 @@ def resolve_pkg_root_and_module_name(
def _is_namespace_package(module_path: Path) -> bool:
# If the path has na __init__.py file, it means it is not
# a namespace package:.
# https://packaging.python.org/en/latest/guides/packaging-namespace-packages.
# If the path has an __init__.py file, it means it is not
# a namespace package:
# https://packaging.python.org/en/latest/guides/packaging-namespace-packages
if (module_path / "__init__.py").is_file():
return False