diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-08 13:20:31 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-08 13:20:31 -0500 |
commit | 44643bd88b90c3ae0afe9dd4b9c9094d868d60b1 (patch) | |
tree | 57aba47760de7aaffa028bb9452a17054ad72eef /coverage/control.py | |
parent | b48ad946aca8fc24561ca3e639533b24e799c020 (diff) | |
download | python-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.py | 4 |
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 |