Fix test_imports tests, now zip imports work again

This commit is contained in:
Dave Halter committed 2019-03-26 09:16:38 +01:00
1 parent b6612a83c3
commit a437c2cb02
7 files changed
+156 -116

No files matched your search

+2 -3
View File
@@ -191,9 +191,8 @@ class ModuleContext(ModuleMixin, TreeContext):
# Default to the of this file.
file = self.py__file__()
if file is None:
return None
return os.path.dirname(file)
assert file is not None # Shouldn't be a package in the first place.
return [os.path.dirname(file)]
@property
def py__path__(self):