~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_breakin.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-31 00:13:11 UTC
  • mto: This revision was merged to the branch mainline in revision 4580.
  • Revision ID: john@arbash-meinel.com-20090731001311-lfuo1b3rgm26cpc8
Fix a typo for the Linux code path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
            self._send_signal = self._send_signal_via_kill
56
56
 
57
57
    def _send_signal_via_kill(self, pid, sig_type):
58
 
        if sig == 'break':
 
58
        if sig_type == 'break':
59
59
            sig_num = signal.SIGQUIT
60
 
        elif sig == 'kill':
 
60
        elif sig_type == 'kill':
61
61
            sig_num = signal.SIGKILL
62
62
        else:
63
63
            raise ValueError("unknown signal type: %s" % (sig_type,))