Parcourir la source

Update tests.sh

Jie Luo il y a 7 ans
Parent
commit
974b5dd496
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      tests.sh

+ 4 - 1
tests.sh

@@ -227,7 +227,10 @@ internal_install_python_deps() {
     return;
     return;
   fi
   fi
   # Install tox (OS X doesn't have pip).
   # Install tox (OS X doesn't have pip).
-  if [ $(uname -s) != "Darwin" ]; then
+  if [ $(uname -s) == "Darwin" ]; then
+    brew upgrade python;
+    python -m pip install -q tox;
+  else
     sudo pip install tox
     sudo pip install tox
   fi
   fi
   # Only install Python2.6/3.x on Linux.
   # Only install Python2.6/3.x on Linux.