tests/coverage.py
changeset 10319 86a6bc519592
parent 10282 08a0f04b56bd
child 10413 e433002acb05
equal deleted inserted replaced
10318:325a6aa95eea 10319:86a6bc519592
   643             tree = tree[-1]
   643             tree = tree[-1]
   644 
   644 
   645     def find_docstring_pass_pair(self, tree, spots):
   645     def find_docstring_pass_pair(self, tree, spots):
   646         for i in range(1, len(tree)):
   646         for i in range(1, len(tree)):
   647             if (self.is_string_constant(tree[i]) and
   647             if (self.is_string_constant(tree[i]) and
   648                 self.is_pass_stmt(tree[i + 1]):
   648                 self.is_pass_stmt(tree[i + 1])):
   649                 first_line = self.first_line_of_tree(tree[i])
   649                 first_line = self.first_line_of_tree(tree[i])
   650                 last_line = self.last_line_of_tree(tree[i + 1])
   650                 last_line = self.last_line_of_tree(tree[i + 1])
   651                 self.record_multiline(spots, first_line, last_line)
   651                 self.record_multiline(spots, first_line, last_line)
   652 
   652 
   653     def is_string_constant(self, tree):
   653     def is_string_constant(self, tree):