Add timeout for pytest<5

This commit is contained in:
Kenneth Lyons 2019-07-01 11:25:29 -07:00
parent 2a0f866f7c
commit ac0e9dc99d
2 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,7 @@ install:
# faulthandler support not built in to pytest for python 2.7
- if [ "${PYTHON}" == "2.7" ]; then
pip install pytest-faulthandler;
export PYTEST_ADDOPTS="--faulthandler-timeout=15";
fi;
# Debugging helpers

View File

@ -102,6 +102,7 @@ jobs:
if [ $(python.version) == "2.7" ]
then
pip install pytest-faulthandler
export PYTEST_ADDOPTS="--faulthandler-timeout=15"
fi
displayName: "Install Dependencies"