From 44643bd88b90c3ae0afe9dd4b9c9094d868d60b1 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 8 Feb 2015 13:20:31 -0500 Subject: Plugin modules have to define a Plugin class, or an error happens. --- coverage/control.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'coverage/control.py') 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 -- cgit v1.2.1