From 0fef34c26e13800bccb6fd00cc4b54935b3a495f Mon Sep 17 00:00:00 2001 From: David Halter Date: Sun, 11 Aug 2013 17:30:50 +0430 Subject: [PATCH] finding out that fake imports arent't allowed in python and os.path is a sys.modules modification, fix tests #213 --- test/completion/imports.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/test/completion/imports.py b/test/completion/imports.py index a0160d16..1e78a9d5 100644 --- a/test/completion/imports.py +++ b/test/completion/imports.py @@ -72,14 +72,19 @@ def builtin_test(): import math def scope_from_import_variable(): - #? int() + """ + All of them shouldn't work, because "fake" imports don't work in python + without the use of ``sys.modules`` modifications (e.g. ``os.path`` see also + github issue #213 for clarification. + """ + #? from import_tree.mod2.fake import a - #? set + #? from import_tree.mod2.fake import c - #? int() + #? a - #? set + #? c def scope_from_import_variable_with_parenthesis(): @@ -87,9 +92,9 @@ def scope_from_import_variable_with_parenthesis(): a, c ) - #? int() + #? a - #? set + #? c # -----------------