~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_command.py

Late bind to PatienceSequenceMatcher to allow plugin to override.

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.selftest import TestCase
 
17
from bzrlib.tests 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"""
23
24
        def pipe_thrower():
24
25
            raise IOError(errno.EPIPE, "Bogus pipe error")
25
26
        self.assertRaises(IOError, pipe_thrower)