1
""" test for setup.py build process """
8
from bzrlib.tests import TestCase
11
class TestSetup(TestCase):
17
""" test cmd `python setup.py build` """
18
# run setup.py build as subproces and catch return code
19
p = subprocess.Popen([sys.executable, 'setup.py', 'build'],
20
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
22
self.assertEqual(0, p.returncode, '`python setup.py build` fails')
25
""" cleanup build directory """
26
shutil.rmtree(u'build')