Commits

Doug Hellmann  committed d917d2f

fix shell expression to get the python version

  • Participants
  • Parent commits f1eded5

Comments (0)

Files changed (1)

File tests/test_support.sh

 }
 
 test_get_python_version () {
-    expected="$(python -c 'import sys; sys.stdout.write(".".join([str(p) for p in sys.version_info[:2]])+'\n')')"
+    expected="$($VIRTUALENVWRAPPER_PYTHON -c 'import sys; sys.stdout.write("%s.%s\n" % sys.version_info[:2])')"
     echo "Expecting: $expected"
     vers=$(virtualenvwrapper_get_python_version)
     echo "Got      : $vers"