mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Imports belong to the top of the module.
This commit is contained in:
@@ -9,6 +9,7 @@ from . import refactor
|
|||||||
|
|
||||||
import jedi
|
import jedi
|
||||||
from jedi.evaluate.analysis import Warning
|
from jedi.evaluate.analysis import Warning
|
||||||
|
from jedi import settings
|
||||||
|
|
||||||
|
|
||||||
def pytest_addoption(parser):
|
def pytest_addoption(parser):
|
||||||
@@ -126,5 +127,4 @@ def isolated_jedi_cache(monkeypatch, tmpdir):
|
|||||||
Same as `clean_jedi_cache`, but create the temporary directory for
|
Same as `clean_jedi_cache`, but create the temporary directory for
|
||||||
each test case (scope='function').
|
each test case (scope='function').
|
||||||
"""
|
"""
|
||||||
from jedi import settings
|
|
||||||
monkeypatch.setattr(settings, 'cache_directory', str(tmpdir))
|
monkeypatch.setattr(settings, 'cache_directory', str(tmpdir))
|
||||||
|
|||||||
Reference in New Issue
Block a user