~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_rules.py

  • Committer: John Arbash Meinel
  • Date: 2011-01-10 22:20:12 UTC
  • mfrom: (5582 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5599.
  • Revision ID: john@arbash-meinel.com-20110110222012-mtcqudkvmzwiufuc
Merge in the bzr.dev 5582

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2008 Canonical Ltd
 
1
# Copyright (C) 2008-2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
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: