Skip to content

Commit

Permalink
Add test asserting None string_names returns an empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ryu committed Dec 11, 2020
1 parent 70fc0d2 commit ce74c46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_inference/test_imports.py
Expand Up @@ -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')
Expand Down

0 comments on commit ce74c46

Please sign in to comment.