Files
python-build/tests/test_09_py.py
T
2011-04-17 20:48:48 +09:00

18 lines
350 B
Python

from tests import TESTPY_FILE
class PyOptions(object):
pythons = []
verbose = False
def _create_pyfile():
fp = open(TESTPY_FILE, 'w')
fp.write("print('test')")
fp.close()
def test_py():
from pythonbrew.commands.py import PyCommand
_create_pyfile()
c = PyCommand()
c.run_command(PyOptions(), [TESTPY_FILE])