From ce74c46ae2e213b6b3207dc41667b9850937266e Mon Sep 17 00:00:00 2001 From: Leo Ryu Date: Fri, 11 Dec 2020 14:24:04 -0800 Subject: [PATCH] Add test asserting None string_names returns an empty list --- test/test_inference/test_imports.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_inference/test_imports.py b/test/test_inference/test_imports.py index 8e49244f2..07ced3240 100644 --- a/test/test_inference/test_imports.py +++ b/test/test_inference/test_imports.py @@ -96,6 +96,9 @@ def test_correct_zip_package_behavior(Script, inference_state, environment, code if path is not None: assert value.py__path__() == [str(pkg_zip_path.joinpath(path))] + value.string_names = None + assert value.py__package__() == [] + def test_find_module_not_package_zipped(Script, inference_state, environment): path = get_example_dir('zipped_imports', 'not_pkg.zip')