Use older pytest-xvfb for py2 configs

This commit is contained in:
Ogi 2020-06-09 20:26:21 -07:00
parent b52809d879
commit 258da19886

View File

@ -135,7 +135,12 @@ jobs:
then
source activate test-environment-$(python.version)
fi
pip install PyVirtualDisplay==0.2.5 pytest-xvfb
if [ $(python.version) == "2.7" ]
then
pip install PyVirtualDisplay==0.2.5 pytest-xvfb==1.2.0
else
pip install pytest-xvfb
fi
displayName: "Virtual Display Setup"
condition: eq(variables['agent.os'], 'Linux' )