test: use generic python reference rather than python2

This commit is contained in:
Mark Nauwelaerts
2020-06-12 13:11:17 +02:00
parent dc91c58e1c
commit 28ed63b707
5 changed files with 7 additions and 7 deletions

View File

@@ -17,16 +17,16 @@ then
test_done
fi
if ! python2 -c 'import mercurial' > /dev/null 2>&1
if ! python -c 'import mercurial' > /dev/null 2>&1
then
skip_all='skipping remote-hg tests; mercurial not available'
test_done
fi
if python2 -c 'import hggit' > /dev/null 2>&1
if python -c 'import hggit' > /dev/null 2>&1
then
hggit=hggit
elif python2 -c 'import hgext.git' > /dev/null 2>&1
elif python -c 'import hgext.git' > /dev/null 2>&1
then
hggit=hgext.git
else