mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
tests: Make coverage package optional
Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
parent
647d2898fa
commit
6c5a0d3cda
@ -26,7 +26,6 @@
|
|||||||
Support for integration of code test coverage analysis with setuptools.
|
Support for integration of code test coverage analysis with setuptools.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import coverage
|
|
||||||
import glob
|
import glob
|
||||||
import setuptools
|
import setuptools
|
||||||
import shutil
|
import shutil
|
||||||
@ -65,6 +64,8 @@ class CoverageCommand(setuptools.Command):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""Main command implementation."""
|
"""Main command implementation."""
|
||||||
|
import coverage
|
||||||
|
|
||||||
if self.distribution.install_requires:
|
if self.distribution.install_requires:
|
||||||
self.distribution.fetch_build_eggs(
|
self.distribution.fetch_build_eggs(
|
||||||
self.distribution.install_requires)
|
self.distribution.install_requires)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user