From d286f637d69e850ee027eee97bbdf9a2d4d3decc Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 29 Nov 2015 01:12:43 +0100 Subject: [PATCH] tests: Set basedir to None, not ''. Turns out setting basedir='' creates cache/ in cwd. --- tests/unit/config/test_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/config/test_config.py b/tests/unit/config/test_config.py index 87790401a..a6b8af445 100644 --- a/tests/unit/config/test_config.py +++ b/tests/unit/config/test_config.py @@ -316,7 +316,7 @@ class TestConfigInit: def test_config_none(self, monkeypatch): """Test initializing with config path set to None.""" args = types.SimpleNamespace(confdir='', datadir='', cachedir='', - basedir='') + basedir=None) for k, v in self.env.items(): monkeypatch.setenv(k, v) standarddir.init(args)