summaryrefslogtreecommitdiff
path: root/tests/plugin2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugin2.py')
-rw-r--r--tests/plugin2.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/plugin2.py b/tests/plugin2.py
index c334628a..60d16206 100644
--- a/tests/plugin2.py
+++ b/tests/plugin2.py
@@ -7,6 +7,14 @@ import os.path
import coverage
+try:
+ import third.render # pylint: disable=unused-import
+except ImportError:
+ # This plugin is used in a few tests. One of them has the third.render
+ # module, but most don't. We need to import it but not use it, so just
+ # try importing it and it's OK if the module doesn't exist.
+ pass
+
class Plugin(coverage.CoveragePlugin):
"""A file tracer plugin for testing."""