~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils_encodings.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:
72
72
    """Test the auto-detection of proper terminal encoding."""
73
73
 
74
74
    def setUp(self):
75
 
        TestCase.setUp(self)
 
75
        super(TestTerminalEncoding, self).setUp()
76
76
        self.overrideAttr(sys, 'stdin')
77
77
        self.overrideAttr(sys, 'stdout')
78
78
        self.overrideAttr(sys, 'stderr')
167
167
    """Test detection of default user encoding."""
168
168
 
169
169
    def setUp(self):
170
 
        TestCase.setUp(self)
 
170
        super(TestUserEncoding, self).setUp()
171
171
        self.overrideAttr(osutils, '_cached_user_encoding', None)
172
172
        self.overrideAttr(locale, 'getpreferredencoding', self.get_encoding)
173
173
        self.overrideAttr(locale, 'CODESET', None)