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

19 lines
436 B
Python

import os
import shutil
PYTHONBREW_ROOT = '/tmp/pythonbrew.test'
TESTPY_FILE = '/tmp/pythonbrew_test.py'
TESTPY_VERSION = ['2.4.6', '2.5.5', '2.6.6', '3.2']
def cleanall():
if os.path.isdir(PYTHONBREW_ROOT):
shutil.rmtree(PYTHONBREW_ROOT)
if os.path.isfile(TESTPY_FILE):
os.remove(TESTPY_FILE)
def setup():
os.environ['PYTHONBREW_ROOT'] = PYTHONBREW_ROOT
cleanall()
def teardown():
cleanall()