~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_rules.py

More use cases for overrideEnv.

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: