summaryrefslogtreecommitdiff
path: root/coverage/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/data.py')
-rw-r--r--coverage/data.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/coverage/data.py b/coverage/data.py
index 3250196d..3a2432b3 100644
--- a/coverage/data.py
+++ b/coverage/data.py
@@ -445,6 +445,11 @@ class CoverageJsonData(object):
self._validate()
+ def set_context(self, context):
+ """Set the context. Not implemented for JSON storage."""
+ if context:
+ raise CoverageException("JSON storage doesn't support contexts")
+
def write(self):
"""Write the collected coverage data to a file.