~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Vincent Ladeuil
  • Date: 2012-08-04 11:16:14 UTC
  • mto: This revision was merged to the branch mainline in revision 6553.
  • Revision ID: v.ladeuil+lp@free.fr-20120804111614-qvkz61424f4u1j0a
Use super() instead of calling <base>.setup(self), as the original fix illustrated a too-easy-to-fall-into trap.

Show diffs side-by-side

added added

removed removed

Lines of Context:
554
554
    """Test pumpfile method."""
555
555
 
556
556
    def setUp(self):
557
 
        tests.TestCase.setUp(self)
 
557
        super(TestPumpFile, self).setUp()
558
558
        # create a test datablock
559
559
        self.block_size = 512
560
560
        pattern = '0123456789ABCDEF'
1985
1985
class TestTerminalWidth(tests.TestCase):
1986
1986
 
1987
1987
    def setUp(self):
1988
 
        tests.TestCase.setUp(self)
 
1988
        super(TestTerminalWidth, self).setUp()
1989
1989
        self._orig_terminal_size_state = osutils._terminal_size_state
1990
1990
        self._orig_first_terminal_size = osutils._first_terminal_size
1991
1991
        self.addCleanup(self.restore_osutils_globals)