~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

(vila) Calling super() instead of mentioning the base class in setUp avoid
 mistakes. (Vincent Ladeuil)

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'
1771
1771
    _native_to_unicode = None
1772
1772
 
1773
1773
    def setUp(self):
1774
 
        tests.TestCaseInTempDir.setUp(self)
 
1774
        super(TestDirReader, self).setUp()
1775
1775
        self.overrideAttr(osutils,
1776
1776
                          '_selected_dir_reader', self._dir_reader_class())
1777
1777
 
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)
2072
2072
    _test_needs_features = [features.chown_feature]
2073
2073
 
2074
2074
    def setUp(self):
2075
 
        tests.TestCaseInTempDir.setUp(self)
 
2075
        super(TestCreationOps, self).setUp()
2076
2076
        self.overrideAttr(os, 'chown', self._dummy_chown)
2077
2077
 
2078
2078
        # params set by call to _dummy_chown