summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-02-08 13:20:31 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-02-08 13:20:31 -0500
commit44643bd88b90c3ae0afe9dd4b9c9094d868d60b1 (patch)
tree57aba47760de7aaffa028bb9452a17054ad72eef /coverage/control.py
parentb48ad946aca8fc24561ca3e639533b24e799c020 (diff)
downloadpython-coveragepy-git-44643bd88b90c3ae0afe9dd4b9c9094d868d60b1.tar.gz
Plugin modules have to define a Plugin class, or an error happens.
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 7398ced0..8650dbcb 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -1126,6 +1126,10 @@ class Plugins(object):
plugin.plugin_name = module
plugins.order.append(plugin)
plugins.names[module] = plugin
+ else:
+ raise CoverageException(
+ "Plugin module %r didn't define a Plugin class" % module
+ )
return plugins