From 839e1b5b85f23b250e3fcf6de61313834e1b3bfb Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 29 Apr 2015 22:39:58 +0200 Subject: [PATCH] We've had some issues in running the tests with vim-vspec > 1.4.1, so we're just defaulting to that. --- conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conftest.py b/conftest.py index 756bd6a..27fe13b 100644 --- a/conftest.py +++ b/conftest.py @@ -3,8 +3,9 @@ import urllib import zipfile import subprocess +VSPEC_URL = 'https://github.com/kana/vim-vspec/archive/1.4.1.zip' 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') TEST_DIR = 'test' @@ -29,8 +30,7 @@ def pytest_configure(config): os.mkdir(CACHE_FOLDER) if not os.path.exists(VSPEC_FOLDER): - url = 'https://github.com/kana/vim-vspec/archive/master.zip' - name, hdrs = urllib.urlretrieve(url) + name, hdrs = urllib.urlretrieve(VSPEC_URL) z = zipfile.ZipFile(name) for n in z.namelist(): dest = os.path.join(CACHE_FOLDER, n)