tests: Set basedir to None, not ''.

Turns out setting basedir='' creates cache/ in cwd.
This commit is contained in:
Florian Bruhin 2015-11-29 01:12:43 +01:00
parent f7a3a9e015
commit d286f637d6

View File

@ -316,7 +316,7 @@ class TestConfigInit:
def test_config_none(self, monkeypatch): def test_config_none(self, monkeypatch):
"""Test initializing with config path set to None.""" """Test initializing with config path set to None."""
args = types.SimpleNamespace(confdir='', datadir='', cachedir='', args = types.SimpleNamespace(confdir='', datadir='', cachedir='',
basedir='') basedir=None)
for k, v in self.env.items(): for k, v in self.env.items():
monkeypatch.setenv(k, v) monkeypatch.setenv(k, v)
standarddir.init(args) standarddir.init(args)