~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils_encodings.py

  • Committer: Vincent Ladeuil
  • Date: 2012-08-04 14:27:47 UTC
  • mto: This revision was merged to the branch mainline in revision 6553.
  • Revision ID: v.ladeuil+lp@free.fr-20120804142747-2t498paljijf7q7y
Remaining tests matching setup(self) that can be rewritten with super().

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)