mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Remove tags for known failures due to the import hack
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
import pytest
|
|
||||||
|
|
||||||
from jedi import settings
|
from jedi import settings
|
||||||
from jedi.cache import ParserCacheItem, _ModulePickling
|
from jedi.cache import ParserCacheItem, _ModulePickling
|
||||||
|
|
||||||
@@ -7,7 +5,6 @@ from jedi.cache import ParserCacheItem, _ModulePickling
|
|||||||
ModulePickling = _ModulePickling()
|
ModulePickling = _ModulePickling()
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif("sys.version_info >= (3,0)")
|
|
||||||
def test_modulepickling_change_cache_dir(monkeypatch, tmpdir):
|
def test_modulepickling_change_cache_dir(monkeypatch, tmpdir):
|
||||||
"""
|
"""
|
||||||
ModulePickling should not save old cache when cache_directory is changed.
|
ModulePickling should not save old cache when cache_directory is changed.
|
||||||
|
|||||||
@@ -11,8 +11,6 @@ import itertools
|
|||||||
import os
|
import os
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
from .base import TestBase, unittest, cwd_at
|
from .base import TestBase, unittest, cwd_at
|
||||||
|
|
||||||
import jedi
|
import jedi
|
||||||
@@ -527,7 +525,6 @@ class TestSpeed(TestBase):
|
|||||||
#print(jedi.imports.imports_processed)
|
#print(jedi.imports.imports_processed)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif("sys.version_info >= (3,0)")
|
|
||||||
def test_settings_module():
|
def test_settings_module():
|
||||||
"""
|
"""
|
||||||
jedi.settings and jedi.cache.settings must be the same module.
|
jedi.settings and jedi.cache.settings must be the same module.
|
||||||
|
|||||||
6
tox.ini
6
tox.ini
@@ -14,9 +14,3 @@ deps =
|
|||||||
deps =
|
deps =
|
||||||
unittest2
|
unittest2
|
||||||
{[testenv]deps}
|
{[testenv]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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user