~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

(vila) Make sure the XDG_CONFIG_HOME environment variable doesn't leak into
 any test. (Wouter van Heyst)

Show diffs side-by-side

added added

removed removed

Lines of Context:
611
611
 
612
612
    def test_xdg_config_dir_exists(self):
613
613
        """When ~/.config/bazaar exists, use it as the config dir."""
614
 
        self.overrideEnv('XDG_CONFIG_HOME', None)
615
614
        newdir = osutils.pathjoin(self.test_home_dir, '.config', 'bazaar')
616
615
        os.makedirs(newdir)
617
616
        self.assertEqual(config.config_dir(), newdir)