mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-09 03:54:52 +08:00
We've had some issues in running the tests with vim-vspec > 1.4.1, so we're just defaulting to that.
This commit is contained in:
@@ -3,8 +3,9 @@ import urllib
|
|||||||
import zipfile
|
import zipfile
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
VSPEC_URL = 'https://github.com/kana/vim-vspec/archive/1.4.1.zip'
|
||||||
CACHE_FOLDER = '.cache'
|
CACHE_FOLDER = '.cache'
|
||||||
VSPEC_FOLDER = os.path.join(CACHE_FOLDER, 'vim-vspec-master')
|
VSPEC_FOLDER = os.path.join(CACHE_FOLDER, 'vim-vspec-1.4.1')
|
||||||
VSPEC_RUNNER = os.path.join(VSPEC_FOLDER, 'bin/vspec')
|
VSPEC_RUNNER = os.path.join(VSPEC_FOLDER, 'bin/vspec')
|
||||||
TEST_DIR = 'test'
|
TEST_DIR = 'test'
|
||||||
|
|
||||||
@@ -29,8 +30,7 @@ def pytest_configure(config):
|
|||||||
os.mkdir(CACHE_FOLDER)
|
os.mkdir(CACHE_FOLDER)
|
||||||
|
|
||||||
if not os.path.exists(VSPEC_FOLDER):
|
if not os.path.exists(VSPEC_FOLDER):
|
||||||
url = 'https://github.com/kana/vim-vspec/archive/master.zip'
|
name, hdrs = urllib.urlretrieve(VSPEC_URL)
|
||||||
name, hdrs = urllib.urlretrieve(url)
|
|
||||||
z = zipfile.ZipFile(name)
|
z = zipfile.ZipFile(name)
|
||||||
for n in z.namelist():
|
for n in z.namelist():
|
||||||
dest = os.path.join(CACHE_FOLDER, n)
|
dest = os.path.join(CACHE_FOLDER, n)
|
||||||
|
|||||||
Reference in New Issue
Block a user