Moved zipped imports test files

This commit is contained in:
Dave Halter
2020-01-12 00:43:27 +01:00
parent 46f8e53e71
commit f3919823fb
3 changed files with 2 additions and 4 deletions

View File

@@ -38,9 +38,7 @@ def test_find_module_not_package():
assert is_package is False
pkg_zip_path = os.path.join(os.path.dirname(__file__),
'zipped_imports',
'pkg.zip')
pkg_zip_path = get_example_dir('zipped_imports', 'pkg.zip')
def test_find_module_package_zipped(Script, inference_state, environment):
@@ -97,7 +95,7 @@ def test_correct_zip_package_behavior(Script, inference_state, environment, code
def test_find_module_not_package_zipped(Script, inference_state, environment):
path = os.path.join(os.path.dirname(__file__), 'zipped_imports/not_pkg.zip')
path = get_example_dir('zipped_imports', 'not_pkg.zip')
sys_path = environment.get_sys_path() + [path]
script = Script('import not_pkg; not_pkg.val', sys_path=sys_path)
assert len(script.complete()) == 1