Fix for issue with templated python code in engine.py

This commit is contained in:
Colm O'Connor 2015-09-23 12:09:46 +08:00
parent 9d2635188d
commit 6974d2ac79

View File

@ -18,12 +18,11 @@ class ExecutionEngine(hitchtest.ExecutionEngine):
def set_up(self): def set_up(self):
"""Ensure virtualenv present, then run all services.""" """Ensure virtualenv present, then run all services."""
{% if cookiecutter.use_python2 == 'n' -%} {% if cookiecutter.use_python2 == 'n' %}
python_package = hitchpython.PythonPackage("2.7.10") python_package = hitchpython.PythonPackage("2.7.10")
{% else %} {% else %}
python_package = hitchpython.PythonPackage("3.5.0") python_package = hitchpython.PythonPackage("3.5.0")
{%- endif %} {% endif %}
python_package.build() python_package.build()
python_package.verify() python_package.verify()