Timo Juhani Lindfors writes ("Bug#637333: autopkgtest: runs a trivial test four times"): > More info: > 1) I think this happens since > > stz = None # stz[field_name][index] = (lno, value) > # special field names: > # stz[' lno'] = number > # stz[' tests'] = list of Test objects > def end_stanza(stz): > if stz is None: return > stz[' errs'] = 0 > stanzas.append(stz) > stz = None > hcurrent = None > > assumes that it could set the outer 'stz' to None from the inner > function. This of course fails and it just touches the local copy.
Hrm, this is possible. > - if not regexp.compile('\S').match(l): end_stanza(stz); continue > + if not regexp.compile('\S').match(l): > + end_stanza(stz) > + stz = None > + continue This looks plausible. I will double-check. > Is > git://git.chiark.greenend.org.uk/~ianmdlvl/autopkgtest.git > the git tree that I should be using? Yes. Thanks for the report. Ian. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org