mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Skip some 3.3 tests for travis
Python 3.3 on travis doesn't have zip support compiled. Just ignore tests since 3.3 is End-of-Life anyway.
This commit is contained in:
@@ -34,7 +34,11 @@ def test_find_module_not_package():
|
|||||||
assert is_package is False
|
assert is_package is False
|
||||||
|
|
||||||
|
|
||||||
def test_find_module_package_zipped(Script):
|
def test_find_module_package_zipped(Script, environment):
|
||||||
|
# Python 3.3 on travis doesn't have zip support compiled. Just ignore this
|
||||||
|
# test since 3.3 is End-of-Life anyway.
|
||||||
|
if environment.version_info[:2] == (3, 3) or sys.version_info[:2] == (3, 3):
|
||||||
|
pytest.skip()
|
||||||
path = os.path.join(os.path.dirname(__file__), 'zipped_imports/pkg.zip')
|
path = os.path.join(os.path.dirname(__file__), 'zipped_imports/pkg.zip')
|
||||||
sys.path.append(path)
|
sys.path.append(path)
|
||||||
try:
|
try:
|
||||||
@@ -50,6 +54,10 @@ def test_find_module_package_zipped(Script):
|
|||||||
|
|
||||||
|
|
||||||
def test_find_module_not_package_zipped(Script, environment):
|
def test_find_module_not_package_zipped(Script, environment):
|
||||||
|
# Comment: See previous test.
|
||||||
|
if environment.version_info[:2] == (3, 3) or sys.version_info[:2] == (3, 3):
|
||||||
|
pytest.skip()
|
||||||
|
|
||||||
path = os.path.join(os.path.dirname(__file__), 'zipped_imports/not_pkg.zip')
|
path = os.path.join(os.path.dirname(__file__), 'zipped_imports/not_pkg.zip')
|
||||||
sys.path.append(path)
|
sys.path.append(path)
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user