~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/script.py

(gz) Throw valid SyntaxError from shell-like tests when a command is not
 found (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
        method = getattr(self, mname, None)
214
214
        if method is None:
215
215
            raise SyntaxError('Command not found "%s"' % (cmd[0],),
216
 
                              None, 1, ' '.join(cmd))
 
216
                              (None, 1, 1, ' '.join(cmd)))
217
217
        if input is None:
218
218
            str_input = ''
219
219
        else: