From e7a019e628c2671c4f7c9c15dab83e510b98308d Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 21 Jul 2018 11:51:41 +0200 Subject: [PATCH] The implicit namespace package test from 4b276bae87a3170672f7ddb3e00f5851fe24d562 can only be used for Python 3.4+ --- test/test_evaluate/test_namespace_package.py | 5 ++++- tox.ini | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/test_evaluate/test_namespace_package.py b/test/test_evaluate/test_namespace_package.py index 30f3b924..1b156583 100644 --- a/test/test_evaluate/test_namespace_package.py +++ b/test/test_evaluate/test_namespace_package.py @@ -77,10 +77,13 @@ def test_nested_namespace_package(Script): 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. """ + if environment.version_info < (3, 4): + pytest.skip() + directory = get_example_dir('namespace_package_relative_import') # Need to copy the content in a directory where there's no __init__.py. py.path.local(directory).copy(tmpdir) diff --git a/tox.ini b/tox.ini index 9ecda0fd..9d247acd 100644 --- a/tox.ini +++ b/tox.ini @@ -9,8 +9,8 @@ deps = # coloroma for colored debug output colorama # Overwrite the parso version (only used sometimes). - git+https://github.com/davidhalter/parso.git -# -rrequirements.txt +# git+https://github.com/davidhalter/parso.git + -rrequirements.txt passenv = JEDI_TEST_ENVIRONMENT setenv = # https://github.com/tomchristie/django-rest-framework/issues/1957