diff options
Diffstat (limited to 'coverage')
-rw-r--r-- | coverage/control.py | 2 | ||||
-rw-r--r-- | coverage/html.py | 3 | ||||
-rw-r--r-- | coverage/misc.py | 2 | ||||
-rw-r--r-- | coverage/parser.py | 2 | ||||
-rw-r--r-- | coverage/test_helpers.py | 4 |
5 files changed, 7 insertions, 6 deletions
diff --git a/coverage/control.py b/coverage/control.py index d74aa888..fde6f63b 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -275,7 +275,7 @@ class Coverage(object): self.data = CoverageData(debug=self.debug) self.data_files = CoverageDataFiles(basename=self.config.data_file) - # The dirs for files considered "installed with the interpreter". + # The directories for files considered "installed with the interpreter". self.pylib_dirs = set() if not self.config.cover_pylib: # Look at where some standard modules are located. That's the diff --git a/coverage/html.py b/coverage/html.py index 357de94c..3c5e3b46 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -58,7 +58,8 @@ def data(fname): class HtmlReporter(Reporter): """HTML reporting.""" - # These files will be copied from the htmlfiles dir to the output dir. + # These files will be copied from the htmlfiles directory to the output + # directory. STATIC_FILES = [ ("style.css", ""), ("jquery.min.js", "jquery"), diff --git a/coverage/misc.py b/coverage/misc.py index 97d1f726..50396d61 100644 --- a/coverage/misc.py +++ b/coverage/misc.py @@ -91,7 +91,7 @@ def expensive(fn): attr = "_cache_" + fn.__name__ def _wrapped(self): - """Inner fn that checks the cache.""" + """Inner function that checks the cache.""" if not hasattr(self, attr): setattr(self, attr, fn(self)) return getattr(self, attr) diff --git a/coverage/parser.py b/coverage/parser.py index a2b1b610..2bdd1bc9 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -274,7 +274,7 @@ class PythonParser(CodeParser): # Class definitions have one extra exit, so remove one for each: for l in self.classdefs: - # Ensure key is there: classdefs can include excluded lines. + # Ensure key is there: class definitions can include excluded lines. if l in exit_counts: exit_counts[l] -= 1 diff --git a/coverage/test_helpers.py b/coverage/test_helpers.py index 3ddb48ba..f36be70b 100644 --- a/coverage/test_helpers.py +++ b/coverage/test_helpers.py @@ -145,7 +145,7 @@ class TempDirMixin(SysPathAwareMixin, ModuleAwareMixin, TestCase): """A test case mixin that creates a temp directory and files in it. Includes SysPathAwareMixin and ModuleAwareMixin, because making and using - temp dirs like this will also need that kind of isolation. + temp directories like this will also need that kind of isolation. """ @@ -238,7 +238,7 @@ class TempDirMixin(SysPathAwareMixin, ModuleAwareMixin, TestCase): # We run some tests in temporary directories, because they may need to make # files for the tests. But this is expensive, so we can change per-class - # whether a temp dir is used or not. It's easy to forget to set that + # whether a temp directory is used or not. It's easy to forget to set that # option properly, so we track information about what the tests did, and # then report at the end of the process on test classes that were set # wrong. |