~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_aliases.py

Used ensure_config_dir exists instead of makedirs

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
from bzrlib.branch import Branch
7
7
from bzrlib.tests import TestCaseInTempDir
8
8
from bzrlib.trace import mutter
9
 
from bzrlib.config import (config_dir, config_filename)
 
9
from bzrlib.config import (ensure_config_dir_exists, config_filename)
10
10
 
11
11
 
12
12
class TestAliases(TestCaseInTempDir):
25
25
            # we risk overwriting users config 
26
26
            self.assert_(config_filename() + "exists, abort")
27
27
        
28
 
        os.makedirs(config_dir())
 
28
        ensure_config_dir_exists()
29
29
        CONFIG=("[ALIASES]\n"
30
30
                "c=cat\n"
31
31
                "c1=cat -r 1\n"