From 32f05d87cb653bc6d4f71ffc49431ec934f26de3 Mon Sep 17 00:00:00 2001 From: Stephan Vedder Date: Fri, 8 Sep 2023 21:33:01 +0200 Subject: [PATCH] Make coverage module import conditional --- tests/runner.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/runner.py b/tests/runner.py index a6af7d1b..e0cc2fe2 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -4,9 +4,8 @@ import sys import unittest -import coverage - if '--coverage' in sys.argv: + import coverage # Start collecting coverage cov = coverage.Coverage() cov.start()