type of NamePart in definition should work.

This commit is contained in:
Dave Halter
2014-04-18 01:31:07 +02:00
parent fe98940624
commit b643325889
6 changed files with 15 additions and 8 deletions

View File

@@ -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))