Lines Matching full:lineno
114 # info about where the docstring came from (name, filename, lineno).
451 - lineno: The line number within the DocTest string containing
465 def __init__(self, source, want, exc_msg=None, lineno=0, indent=0,
477 self.lineno = lineno
489 self.lineno == other.lineno and \
495 return hash((self.source, self.want, self.lineno, self.indent,
514 - lineno: The line number within filename where this DocTest
522 def __init__(self, examples, globs, name, filename, lineno, docstring):
534 self.lineno = lineno
545 self.name, self.filename, self.lineno, examples))
556 self.lineno == other.lineno
559 return hash((self.docstring, self.name, self.filename, self.lineno))
565 return ((self.name, self.filename, self.lineno, id(self))
567 (other.name, other.filename, other.lineno, id(other)))
636 charno, lineno = 0, 0
641 # Update lineno (lines before this example)
642 lineno += string.count('\n', charno, m.start())
645 self._parse_example(m, name, lineno)
649 lineno=lineno,
652 # Update lineno (lines inside this example)
653 lineno += string.count('\n', m.start(), m.end())
660 def get_doctest(self, string, globs, name, filename, lineno):
665 `globs`, `name`, `filename`, and `lineno` are attributes for
670 name, filename, lineno, string)
686 def _parse_example(self, m, name, lineno):
694 `name` is the string's name, and `lineno` is the line number
703 self._check_prompt_blank(source_lines, indent, name, lineno)
704 self._check_prefix(source_lines[1:], ' '*indent + '.', name, lineno)
715 lineno + len(source_lines))
726 options = self._find_options(source, name, lineno)
740 def _find_options(self, source, name, lineno):
745 `name` is the string's name, and `lineno` is the line number
757 (lineno+1, name, option))
763 (lineno, name, source))
778 def _check_prompt_blank(self, lines, indent, name, lineno):
789 (lineno+i+1, name,
792 def _check_prefix(self, lines, prefix, name, lineno):
801 (lineno+i+1, name, line))
1053 lineno = self._find_lineno(obj, source_lines)
1067 filename, lineno)
1074 lineno = None
1078 lineno = 0
1090 lineno = i
1099 lineno = getattr(obj, 'co_firstlineno', None)-1
1106 if lineno is not None:
1108 return lineno+1
1110 for lineno in range(lineno, len(source_lines)):
1111 if pat.match(source_lines[lineno]):
1112 return lineno
1255 if test.lineno is not None and example.lineno is not None:
1256 lineno = test.lineno + example.lineno + 1
1258 lineno = '?'
1260 (test.filename, lineno, test.name))
1262 out.append('Line %s, in %s' % (example.lineno+1, test.name))
2203 if test.lineno is None:
2204 lineno = 'unknown line number'
2206 lineno = '%s' % test.lineno
2210 % (test.name, test.filename, lineno, lname, err)