Move another test to examples

This commit is contained in:
Dave Halter
2020-01-12 00:09:48 +01:00
parent 1e27491545
commit c79269b3ee
5 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ addopts = --doctest-modules
# Ignore broken files in blackbox test directories # Ignore broken files in blackbox test directories
norecursedirs = .* docs completion refactor namespace_package norecursedirs = .* docs completion refactor namespace_package
scripts extensions speed static_analysis not_in_sys_path scripts extensions speed static_analysis not_in_sys_path
sample_venvs init_extension_module simple_import jedi/third_party sample_venvs init_extension_module jedi/third_party
# Activate `clean_jedi_cache` fixture for all tests. This should be # Activate `clean_jedi_cache` fixture for all tests. This should be
# fine as long as we are using `clean_jedi_cache` as a session scoped # fine as long as we are using `clean_jedi_cache` as a session scoped

View File

@@ -236,7 +236,7 @@ def test_goto_module(Script):
module, = script.goto(line=line, follow_imports=follow_imports) module, = script.goto(line=line, follow_imports=follow_imports)
assert module.module_path == expected assert module.module_path == expected
base_path = os.path.join(os.path.dirname(__file__), 'simple_import') base_path = get_example_dir('simple_import')
path = os.path.join(base_path, '__init__.py') path = os.path.join(base_path, '__init__.py')
check(1, os.path.join(base_path, 'module.py')) check(1, os.path.join(base_path, 'module.py'))