diff --git a/plinth/tests/coverage/coverage.py b/plinth/tests/coverage/coverage.py index 8609e08e4..9dd130cd5 100644 --- a/plinth/tests/coverage/coverage.py +++ b/plinth/tests/coverage/coverage.py @@ -26,7 +26,6 @@ Support for integration of code test coverage analysis with setuptools. """ -import coverage import glob import setuptools import shutil @@ -65,6 +64,8 @@ class CoverageCommand(setuptools.Command): def run(self): """Main command implementation.""" + import coverage + if self.distribution.install_requires: self.distribution.fetch_build_eggs( self.distribution.install_requires)