mirror of
https://github.com/kennethreitz-archive/python-build.git
synced 2026-06-05 23:30:18 +00:00
release 0.9
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
from tests import PYTHONBREW_ROOT
|
||||
import os
|
||||
|
||||
TESTPY_FILE = os.path.join(PYTHONBREW_ROOT, 'etc', 'testfile.py')
|
||||
|
||||
class PyOptions(object):
|
||||
pythons = []
|
||||
verbose = False
|
||||
bin = "python"
|
||||
options = ""
|
||||
|
||||
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])
|
||||
Reference in New Issue
Block a user