From 4f82959a417e7b728ca6afd30c076cbd1c1a1092 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Wed, 27 Jan 2021 01:47:42 +0100 Subject: [PATCH] yet another python3 migration --- ynh-dev | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ynh-dev b/ynh-dev index 663b7ba..2904939 100755 --- a/ynh-dev +++ b/ynh-dev @@ -356,14 +356,14 @@ function run_tests() # Pytest and tests dependencies if ! type "pytest" > /dev/null 2>&1; then info "> Installing pytest ..." - apt-get install python-pip -y - pip2 install pytest pytest-sugar + apt-get install python3-pip -y + pip3 install pytest pytest-sugar fi for DEP in "pytest-mock requests-mock mock" do - if [ -z "$(pip show $DEP)" ]; then - info "Installing $DEP with pip" - pip2 install $DEP + if [ -z "$(pip3 show $DEP)" ]; then + info "Installing $DEP with pip3" + pip3 install $DEP fi done