summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
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