mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
The implicit namespace package test from 4b276bae87 can only be used for Python 3.4+
This commit is contained in:
@@ -77,10 +77,13 @@ def test_nested_namespace_package(Script):
|
|||||||
assert len(result) == 1
|
assert len(result) == 1
|
||||||
|
|
||||||
|
|
||||||
def test_relative_import(Script, tmpdir):
|
def test_relative_import(Script, environment, tmpdir):
|
||||||
"""
|
"""
|
||||||
Attempt a relative import in a very simple namespace package.
|
Attempt a relative import in a very simple namespace package.
|
||||||
"""
|
"""
|
||||||
|
if environment.version_info < (3, 4):
|
||||||
|
pytest.skip()
|
||||||
|
|
||||||
directory = get_example_dir('namespace_package_relative_import')
|
directory = get_example_dir('namespace_package_relative_import')
|
||||||
# Need to copy the content in a directory where there's no __init__.py.
|
# Need to copy the content in a directory where there's no __init__.py.
|
||||||
py.path.local(directory).copy(tmpdir)
|
py.path.local(directory).copy(tmpdir)
|
||||||
|
|||||||
4
tox.ini
4
tox.ini
@@ -9,8 +9,8 @@ deps =
|
|||||||
# coloroma for colored debug output
|
# coloroma for colored debug output
|
||||||
colorama
|
colorama
|
||||||
# Overwrite the parso version (only used sometimes).
|
# Overwrite the parso version (only used sometimes).
|
||||||
git+https://github.com/davidhalter/parso.git
|
# git+https://github.com/davidhalter/parso.git
|
||||||
# -rrequirements.txt
|
-rrequirements.txt
|
||||||
passenv = JEDI_TEST_ENVIRONMENT
|
passenv = JEDI_TEST_ENVIRONMENT
|
||||||
setenv =
|
setenv =
|
||||||
# https://github.com/tomchristie/django-rest-framework/issues/1957
|
# https://github.com/tomchristie/django-rest-framework/issues/1957
|
||||||
|
|||||||
Reference in New Issue
Block a user