/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/test_rules.py

(vila) Provides a better isolation from os.environ for tests. (Vincent
 Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
 
119
119
    def setUp(self):
120
120
        super(TestRulesPath, self).setUp()
121
 
        os.environ['HOME'] = '/home/bogus'
 
121
        self.overrideEnv('HOME', '/home/bogus')
122
122
        if sys.platform == 'win32':
123
 
            os.environ['BZR_HOME'] = \
124
 
                r'C:\Documents and Settings\bogus\Application Data'
 
123
            self.overrideEnv(
 
124
                'BZR_HOME', r'C:\Documents and Settings\bogus\Application Data')
125
125
            self.bzr_home = \
126
126
                'C:/Documents and Settings/bogus/Application Data/bazaar/2.0'
127
127
        else: