mirror of
https://github.com/davidhalter/jedi.git
synced 2026-03-01 17:06:49 +08:00
type of NamePart in definition should work.
This commit is contained in:
@@ -255,7 +255,7 @@ check(DynamicParam())
|
||||
# Compiled Objects
|
||||
# -----------------
|
||||
|
||||
import sys
|
||||
import _sre
|
||||
|
||||
#< 0 (-3,7), (0,0)
|
||||
sys
|
||||
#< 0 (-3,7), (0,0), ('_sre', None, None)
|
||||
_sre
|
||||
|
||||
@@ -221,8 +221,10 @@ class IntegrationTestCase(object):
|
||||
# this means that there is a module specified
|
||||
wanted.append(pos_tup)
|
||||
else:
|
||||
wanted.append((self.module_name, self.line_nr + pos_tup[0],
|
||||
pos_tup[1]))
|
||||
line = pos_tup[0]
|
||||
if pos_tup[0] is not None:
|
||||
line += self.line_nr
|
||||
wanted.append((self.module_name, line, pos_tup[1]))
|
||||
|
||||
return compare_cb(self, compare, sorted(wanted))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user