/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/commands/test_cat.py

  • Committer: Vincent Ladeuil
  • Date: 2010-01-25 17:48:22 UTC
  • mto: (4987.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4988.
  • Revision ID: v.ladeuil+lp@free.fr-20100125174822-nce4l19sbwx83jvq
Deploying the new overrideAttr facility further reduces the complexity
and make the code clearer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        super(TestCat, self).setUp()
28
28
        # Redirect sys.stdout as this is what cat uses
29
29
        self.outf = StringIOWrapper()
30
 
        self.addAttrCleanup(sys, 'stdout')
31
 
        sys.stdout = self.outf
 
30
        self.overrideAttr(sys, 'stdout', self.outf)
32
31
 
33
32
    def test_cat(self):
34
33
        # FIXME: sftp raises ReadError instead of NoSuchFile when probing for