Fix test_imports tests, now zip imports work again
This commit is contained in:
1 parent
b6612a83c3
commit
a437c2cb02
7 files changed
+156
-116
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user