summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-24 22:16:54 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-24 22:16:54 -0500
commit6a54847bbceb31335fef3ea8201e76b6e037abee (patch)
treeb34f54276b90a3456a888b1a33dd7e98ed46c9d8
parent9e2cd06dd56cf64e787b7951c889ceda31af7dae (diff)
downloadpython-coveragepy-git-6a54847bbceb31335fef3ea8201e76b6e037abee.tar.gz
Docstrings for lint
-rw-r--r--coverage/misc.py1
-rw-r--r--test/__init__.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/coverage/misc.py b/coverage/misc.py
index 329a8417..aa61fc98 100644
--- a/coverage/misc.py
+++ b/coverage/misc.py
@@ -53,6 +53,7 @@ def expensive(fn):
"""
attr = "_cache_" + fn.__name__
def _wrapped(self):
+ """Inner fn that checks the cache."""
if not hasattr(self, attr):
setattr(self, attr, fn(self))
return getattr(self, attr)
diff --git a/test/__init__.py b/test/__init__.py
index e69de29b..5a0e30f4 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -0,0 +1 @@
+"""Automated tests. Run with nosetests."""