Add a failing test due to import hack

This commit is contained in:
Takafumi Arakaki
2013-03-12 10:01:57 +01:00
parent 7c289ce6be
commit 49f635dca3
2 changed files with 14 additions and 0 deletions

View File

@@ -11,6 +11,8 @@ import itertools
import os
import textwrap
import pytest
from .base import TestBase, unittest, cwd_at
import jedi
@@ -524,5 +526,16 @@ class TestSpeed(TestBase):
script.function_definition()
#print(jedi.imports.imports_processed)
@pytest.mark.skipif("sys.version_info >= (3,0)")
def test_settings_module():
"""
jedi.settings and jedi.cache.settings must be the same module.
"""
from jedi import cache
from jedi import settings
assert cache.settings is settings
if __name__ == '__main__':
unittest.main()

View File

@@ -20,5 +20,6 @@ deps =
[testenv:py32]
# TODO: Without this setting, test uses ~/.cache/jedi/.
# There could be a bug due to import hack.
# See test_settings_module in test/test_regression.py.
setenv =
XDG_CACHE_HOME={envtmpdir}/cache