Permalink
Browse files

new api problems - fixes #62, #63

  • Loading branch information...
davidhalter committed Nov 17, 2012
1 parent cf23310 commit 4adcc774c46781ba7854cf3084ed5b920b26f381
Showing with 12 additions and 3 deletions.
  1. +3 −3 jedi/api_classes.py
  2. +9 −0 test/completion/std.py
View
@@ -26,9 +26,9 @@ def __init__(self, definition, start_pos):
self.path = []
par = definition
while par is not None:
- if not isinstance(self.stripped_definition,
- (parsing.Flow, parsing.Statement, parsing.Import,
- evaluate.Array, parsing.Name)):
+ if not par.isinstance(
+ parsing.Flow, parsing.Statement, parsing.Import,
+ evaluate.Array, parsing.Name):
self.path.insert(0, par.name)
par = par.parent()
View
@@ -63,3 +63,12 @@ def example(a):
#? str()
example('')
+
+# -----------------
+# various regression tests
+# -----------------
+
+#62
+import threading
+#? ['_Verbose', '_VERBOSE']
+threading._Verbose

0 comments on commit 4adcc77

Please sign in to comment.