Lines Matching refs:source_lines
704 source_lines = m.group('source').split('\n')
705 self._check_prompt_blank(source_lines, indent, name, lineno)
706 self._check_prefix(source_lines[1:], ' '*indent + '.', name, lineno)
707 source = '\n'.join([sl[indent+4:] for sl in source_lines])
717 lineno + len(source_lines))
901 source_lines = linecache.getlines(file, module.__dict__)
905 source_lines = linecache.getlines(file)
906 if not source_lines:
907 source_lines = None
909 source_lines = None
926 self._find(tests, obj, name, module, source_lines, globs, {})
954 def _find(self, tests, obj, name, module, source_lines, globs, seen): argument
968 test = self._get_test(obj, name, module, globs, source_lines)
979 self._find(tests, val, valname, module, source_lines,
997 self._find(tests, val, valname, module, source_lines,
1014 self._find(tests, val, valname, module, source_lines,
1017 def _get_test(self, obj, name, module, globs, source_lines): argument
1038 lineno = self._find_lineno(obj, source_lines)
1054 def _find_lineno(self, obj, source_lines): argument
1069 if source_lines is None:
1073 for i, line in enumerate(source_lines):
1092 if source_lines is None:
1095 for lineno in range(lineno, len(source_lines)):
1096 if pat.match(source_lines[lineno]):