From 39e5c4bb25734450d722b6ad748a21dc17ec2b10 Mon Sep 17 00:00:00 2001 From: G Roques Date: Mon, 20 Jul 2020 18:35:50 -0500 Subject: [PATCH] Add additional test for non-immediate private parent package --- src/tests/parser_test.py | 3 +++ 1 file changed, 3 insertions(+) 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