Some test fixes
This commit is contained in:
1 parent
aa37f6f738
commit
2f1ce2bbf9
4 files changed
+11
-7
No files matched your search
@@ -127,7 +127,7 @@ def _from_loader(loader, string):
|
||||
|
||||
# To avoid unicode and read bytes, "overwrite" loader.get_source if
|
||||
# possible.
|
||||
f = loader.get_source.__func__
|
||||
f = type(loader).get_source
|
||||
if is_py3 and f is not importlib.machinery.SourceFileLoader.get_source:
|
||||
# Unfortunately we are reading unicode here, not bytes.
|
||||
# It seems hard to get bytes, because the zip importer
|
||||
|
||||
Reference in new issue
Block a user