set cov as None if python-coverage not installed

If we didn't install python-coverage, we could not
run 'python setup.py test'.
This patch fixes this little bug.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
Chen Hanxiao
2014-01-08 17:09:57 +08:00
committed by Cole Robinson
parent 7906b1cc41
commit 2427254ffe

View File

@@ -394,6 +394,7 @@ class TestBaseCommand(Command):
use_cov = True
except:
use_cov = False
cov = None
if use_cov:
omit = ["/usr/*", "/*/tests/*"]