1
0
forked from VimPlug/jedi

Fix usage tests

With those tests fixed, everything should pass again
This commit is contained in:
Dave Halter
2019-08-21 01:01:09 +02:00
parent 8a2b7f18cd
commit 4cbe2898c0
2 changed files with 9 additions and 6 deletions

View File

@@ -256,7 +256,10 @@ class IntegrationTestCase(object):
def run_usages(self, compare_cb, environment):
result = self.script(environment).usages()
self.correct = self.correct.strip()
compare = sorted((r.module_name, r.line, r.column) for r in result)
compare = sorted(
(re.sub(r'^test\.completion\.', '', r.module_name), r.line, r.column)
for r in result
)
wanted = []
if not self.correct:
positions = []