diff --git a/src/tests/parser_test.py b/src/tests/parser_test.py index 00bf5d7f..e5ca924a 100644 --- a/src/tests/parser_test.py +++ b/src/tests/parser_test.py @@ -578,6 +578,9 @@ def test_module_publicity(parent_path): module = parser.parse(code, str(parent_path / "_private_pkg" / "filepath")) assert not module.is_public + module = parser.parse(code, str(parent_path / "_private_pkg" / "some_pkg" / "filepath")) + assert not module.is_public + module = parser.parse(code, str(parent_path / "_filepath")) assert not module.is_public