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

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

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