From fedeb6b0109dcc262c29e9e8e68fe8c8a31433a1 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 30 Mar 2024 17:10:09 -0300 Subject: [PATCH] Update src/_pytest/pathlib.py Co-authored-by: Ran Benita --- src/_pytest/pathlib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/_pytest/pathlib.py b/src/_pytest/pathlib.py index d6ad7e88f..70479fe5a 100644 --- a/src/_pytest/pathlib.py +++ b/src/_pytest/pathlib.py @@ -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