~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_command.py

  • Committer: John Arbash Meinel
  • Date: 2005-11-14 17:02:35 UTC
  • mto: (1587.1.6 bound-branches)
  • mto: This revision was merged to the branch mainline in revision 1590.
  • Revision ID: john@arbash-meinel.com-20051114170235-f85afa458bae956e
Fixing up the error message for a failed bind.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
 
from bzrlib.tests import TestCase
 
17
from bzrlib.selftest import TestCase
18
18
from bzrlib.commands import display_command
19
19
import errno
20
20
 
21
21
class TestCommands(TestCase):
22
22
    def test_display_command(self):
23
 
        """EPIPE message is selectively suppressed"""
24
23
        def pipe_thrower():
25
24
            raise IOError(errno.EPIPE, "Bogus pipe error")
26
25
        self.assertRaises(IOError, pipe_thrower)