devtools/testlib.py
branchtls-sprint
changeset 1133 8a409ea0c9ec
parent 1132 96752791c2b6
child 1142 03a9acf3c299
equal deleted inserted replaced
1132:96752791c2b6 1133:8a409ea0c9ec
   235                     # XXX no need to iterate the whole file except to get
   235                     # XXX no need to iterate the whole file except to get
   236                     # the line number
   236                     # the line number
   237                     output = '\n'.join(line_template % (idx + 1, line)
   237                     output = '\n'.join(line_template % (idx + 1, line)
   238                                 for idx, line in enumerate(output)
   238                                 for idx, line in enumerate(output)
   239                                 if line_context_filter(idx+1, position))
   239                                 if line_context_filter(idx+1, position))
   240                     msg+= '\nfor output:\n%s' % output
   240                     msg += '\nfor output:\n%s' % output
   241             raise AssertionError, msg, tcbk
   241             raise AssertionError, msg, tcbk
   242 
   242 
   243 
   243 
   244     def to_test_etypes(self):
   244     def to_test_etypes(self):
   245         return unprotected_entities(self.schema, strict=True)
   245         return unprotected_entities(self.schema, strict=True)