Skip to content

Commit

Permalink
Skip failing tests on Appveyor for Python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
rth committed Apr 28, 2018
1 parent d9c3436 commit 754f7ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions appveyor.yml
Expand Up @@ -7,10 +7,6 @@ environment:
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda-x64
REQUIREMENTS: "pytest numpy"
- PYTHON_VERSION: "3.5.x"
PYTHON_ARCH: "32"
MINICONDA: C:\Miniconda35
REQUIREMENTS: "pytest numpy pandas"
- PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda36-x64
Expand Down
5 changes: 5 additions & 0 deletions neurtu/tests/test_blas.py
Expand Up @@ -4,6 +4,7 @@
from __future__ import division

import os
import sys
from glob import glob
import subprocess

Expand Down Expand Up @@ -57,10 +58,14 @@ def test_detect_blas():
@pytest.mark.skipif(np is None, reason='numpy not installed')
@pytest.mark.parametrize('blas_name', ['mkl', 'openblas', 'blas'])
def test_blas_set_threads(blas_name):

name, dll_path = detect_blas()
if name != blas_name:
pytest.skip('blas=%s not found!' % blas_name)

if 'CI' in os.environ and sys.version_info < (3, 4) and name == 'mkl':
pytest.skip('Appveyor with Python 2.7 fails to load the MKL DLL')

blas = Blas(dll_path)

num_threads_0 = blas.get_num_threads()
Expand Down

0 comments on commit 754f7ff

Please sign in to comment.