Fix some interpreter issues

This commit is contained in:
Dave Halter committed 2019-08-20 09:09:19 +02:00
1 parent 217b632213
commit 39b294e085
15 files changed
+83 -50

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ def test_paths_from_assignment(Script):
def paths(src):
script = Script(src, path='/foo/bar.py')
expr_stmt = script._module_node.children[0]
return set(sys_path._paths_from_assignment(script._get_module(), expr_stmt))
return set(sys_path._paths_from_assignment(script._get_module_context(), expr_stmt))
# Normalize paths for Windows.
path_a = os.path.abspath('/foo/a')