tests: Set basedir to None, not ''.
Turns out setting basedir='' creates cache/ in cwd.
This commit is contained in:
parent
f7a3a9e015
commit
d286f637d6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user