summaryrefslogtreecommitdiff
path: root/coverage/context.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/context.py')
-rw-r--r--coverage/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/context.py b/coverage/context.py
index 22c0e531..13800337 100644
--- a/coverage/context.py
+++ b/coverage/context.py
@@ -65,7 +65,7 @@ def qualname_from_frame(frame):
if hasattr(func, '__qualname__'):
qname = func.__qualname__
else:
- for cls in self.__class__.__mro__:
+ for cls in getattr(self.__class__, '__mro__', ()):
f = cls.__dict__.get(fname, None)
if f is None:
continue