summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-02-24 15:15:18 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-02-24 20:44:17 -0500
commit84cbf083a18a814c501eecb450d7ac4126e74054 (patch)
tree31bd5beecd6f6d6ca1d736b2e87c5264a3f271a6 /igor.py
parentec9668269897631a263b71fb9727555570e9f24f (diff)
downloadpython-coveragepy-git-84cbf083a18a814c501eecb450d7ac4126e74054.tar.gz
build: nicer publishing of HTML report
Also, this correctly combines results from different runners.
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/igor.py b/igor.py
index d8d2069d..a4a460c0 100644
--- a/igor.py
+++ b/igor.py
@@ -20,7 +20,11 @@ import textwrap
import warnings
import zipfile
-import pytest
+try:
+ import pytest
+except ImportError:
+ # We want to be able to run this for some tasks that don't need pytest.
+ pytest = None
# Contants derived the same as in coverage/env.py. We can't import
# that file here, it would be evaluated too early and not get the