Adding files to pep8 tests

Change-Id: I96bfed7541aa96e243950b3bcc896e9fe17471ba
This commit is contained in:
Derek Higgins 2013-04-23 05:16:05 -04:00
parent 3a595e77bb
commit b3554a226c
3 changed files with 8 additions and 6 deletions

View File

@ -20,7 +20,7 @@ def execute(cmd, workdir=None, can_fail=False, mask_list=None,
mask_list = mask_list or []
repl_list = [("'", "'\\''")]
if type(cmd) is not types.StringType:
if not isinstance(cmd, types.StringType):
import pipes
masked = ' '.join((pipes.quote(i) for i in cmd))
else:

View File

@ -18,7 +18,9 @@ downloadcache = ~/cache/pip
[testenv:pep8]
deps=pep8==1.2
commands = pep8 --exclude=*.pyc --repeat --show-source \
packstack/modules tests setup.py
packstack/modules tests setup.py packstack/installer/utils \
packstack/installer/processors.py
[testenv:cover]
setenv = NOSE_WITH_COVERAGE=1