diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-15 15:06:13 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-15 15:06:13 -0500 |
commit | 80036ce3f4b82b3911e10b7d28226048dc8a56c0 (patch) | |
tree | ee53a98f51a9dddd8a46f5ddd1cb88dd760ff63d /coverage/misc.py | |
parent | e25a505dfece0b60c22ea871796d7159a300d771 (diff) | |
download | python-coveragepy-git-80036ce3f4b82b3911e10b7d28226048dc8a56c0.tar.gz |
Protect against misbehaving plugins.
Also, test some misbehavior, and move our own annotations of plugins
into prefixed attributes.
Diffstat (limited to 'coverage/misc.py')
-rw-r--r-- | coverage/misc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/misc.py b/coverage/misc.py index 17fb3df9..d5197ea3 100644 --- a/coverage/misc.py +++ b/coverage/misc.py @@ -165,9 +165,9 @@ def overrides(obj, method_name, base_class): # TODO: abc? def _needs_to_implement(that, func_name): """Helper to raise NotImplementedError in interface stubs.""" - if hasattr(that, "plugin_name"): + if hasattr(that, "_coverage_plugin_name"): thing = "Plugin" - name = that.plugin_name + name = that._coverage_plugin_name else: thing = "Class" klass = that.__class__ |