@@ -39,31 +39,20 @@ if [[ "$DISTRIB" == "conda" ]]; then
3939
4040 # Configure the conda environment and put it in the path using the
4141 # provided versions
42- if [[ " $USE_PYTEST " == " true" ]]; then
43- TEST_RUNNER_PACKAGE=pytest
44- else
45- TEST_RUNNER_PACKAGE=nose
46- fi
47-
4842 if [[ " $INSTALL_MKL " == " true" ]]; then
4943 conda create -n testenv --yes python=$PYTHON_VERSION pip \
50- $TEST_RUNNER_PACKAGE numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION \
44+ pytest pytest-cov numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION \
5145 mkl cython=$CYTHON_VERSION \
5246 ${PANDAS_VERSION+pandas=$PANDAS_VERSION }
5347
5448 else
5549 conda create -n testenv --yes python=$PYTHON_VERSION pip \
56- $TEST_RUNNER_PACKAGE numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION \
50+ pytest pytest-cov numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION \
5751 nomkl cython=$CYTHON_VERSION \
5852 ${PANDAS_VERSION+pandas=$PANDAS_VERSION }
5953 fi
6054 source activate testenv
6155
62- if [[ $USE_PYTEST != " true" ]]; then
63- # Install nose-timer via pip
64- pip install nose-timer
65- fi
66-
6756elif [[ " $DISTRIB " == " ubuntu" ]]; then
6857 # At the time of writing numpy 1.9.1 is included in the travis
6958 # virtualenv but we want to use the numpy installed through apt-get
@@ -73,7 +62,7 @@ elif [[ "$DISTRIB" == "ubuntu" ]]; then
7362 # and scipy
7463 virtualenv --system-site-packages testvenv
7564 source testvenv/bin/activate
76- pip install nose nose-timer cython==$CYTHON_VERSION
65+ pip install pytest pytest-cov cython==$CYTHON_VERSION
7766
7867elif [[ " $DISTRIB " == " scipy-dev-wheels" ]]; then
7968 # Set up our own virtualenv environment to avoid travis' numpy.
@@ -86,7 +75,7 @@ elif [[ "$DISTRIB" == "scipy-dev-wheels" ]]; then
8675 echo " Installing numpy and scipy master wheels"
8776 dev_url=https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com
8877 pip install --pre --upgrade --timeout=60 -f $dev_url numpy scipy cython
89- pip install nose nose-timer
78+ pip install pytest pytest-cov
9079fi
9180
9281if [[ " $COVERAGE " == " true" ]]; then
0 commit comments