Skip to content

Commit d917d2f

Browse files
committed
fix shell expression to get the python version
1 parent f1eded5 commit d917d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_support.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ setUp () {
2222
}
2323

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

0 commit comments

Comments
 (0)