mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-28 08:12:11 +08:00
remove test.base.TestBase finally, #181
This commit is contained in:
@@ -73,7 +73,7 @@ def isolated_jedi_cache(monkeypatch, tmpdir):
|
||||
Same as `clean_jedi_cache`, but create the temporary directory for
|
||||
each test case (scope='function').
|
||||
"""
|
||||
settings = base.jedi.settings
|
||||
from jedi import settings
|
||||
monkeypatch.setattr(settings, 'cache_directory', str(tmpdir))
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ def clean_jedi_cache(request):
|
||||
|
||||
This fixture is activated in ../pytest.ini.
|
||||
"""
|
||||
settings = base.jedi.settings
|
||||
from jedi import settings
|
||||
old = settings.cache_directory
|
||||
tmp = tempfile.mkdtemp(prefix='jedi-test-')
|
||||
settings.cache_directory = tmp
|
||||
|
||||
Reference in New Issue
Block a user