summaryrefslogtreecommitdiff
path: root/coverage/misc.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-02-15 15:06:13 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-02-15 15:06:13 -0500
commit12dca52bf09a6ed97850e5262b9dc2a15ef19b05 (patch)
tree30940b57bfb714e9184c0848a82600da839f1a5c /coverage/misc.py
parente46e6e0ff56104f137678fa712b7b4f78b25cea8 (diff)
downloadpython-coveragepy-12dca52bf09a6ed97850e5262b9dc2a15ef19b05.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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/misc.py b/coverage/misc.py
index 17fb3df..d5197ea 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__