~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Alexander Belchenko
  • Date: 2007-03-05 14:34:28 UTC
  • mto: This revision was merged to the branch mainline in revision 2317.
  • Revision ID: bialix@ukr.net-20070305143428-3carp6uibk6yume4
bzr now use Win32 API to determine Application Data location, and don't rely solely on $APPDATA

Show diffs side-by-side

added added

removed removed

Lines of Context:
808
808
        new_env = {
809
809
            'BZR_HOME': None, # Don't inherit BZR_HOME to all the tests.
810
810
            'HOME': os.getcwd(),
811
 
            'APPDATA': os.getcwd(),
 
811
            'APPDATA': None,  # bzr now use Win32 API and don't rely on APPDATA
812
812
            'BZR_EMAIL': None,
813
813
            'BZREMAIL': None, # may still be present in the environment
814
814
            'EMAIL': None,
1444
1444
 
1445
1445
    def overrideEnvironmentForTesting(self):
1446
1446
        os.environ['HOME'] = self.test_home_dir
1447
 
        os.environ['APPDATA'] = self.test_home_dir
 
1447
        os.environ['BZR_HOME'] = self.test_home_dir
1448
1448
        
1449
1449
    def setUp(self):
1450
1450
        super(TestCaseWithMemoryTransport, self).setUp()