Skip to content

Commit

Permalink
Make coverage module import conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
feliwir committed Sep 8, 2023
1 parent 264855c commit 32f05d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 32f05d8

Please sign in to comment.