diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/coveragetest.py | 2 | ||||
-rw-r--r-- | tests/helpers.py | 4 | ||||
-rw-r--r-- | tests/test_api.py | 2 | ||||
-rw-r--r-- | tests/test_farm.py | 2 | ||||
-rw-r--r-- | tests/test_oddball.py | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py index fdb27e6e..7db25de0 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -252,7 +252,7 @@ class CoverageTest( return cov def nice_file(self, *fparts): - """Canonicalize the filename composed of the parts in `fparts`.""" + """Canonicalize the file name composed of the parts in `fparts`.""" fname = os.path.join(*fparts) return os.path.normcase(os.path.abspath(os.path.realpath(fname))) diff --git a/tests/helpers.py b/tests/helpers.py index 3d6be141..aa094bc1 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -29,7 +29,7 @@ def run_command(cmd): class CheckUniqueFilenames(object): - """Asserts the uniqueness of filenames passed to a function.""" + """Asserts the uniqueness of file names passed to a function.""" def __init__(self, wrapped): self.filenames = set() self.wrapped = wrapped @@ -45,7 +45,7 @@ class CheckUniqueFilenames(object): def wrapper(self, filename, *args, **kwargs): """The replacement method. Check that we don't have dupes.""" assert filename not in self.filenames, ( - "Filename %r passed to %r twice" % (filename, self.wrapped) + "File name %r passed to %r twice" % (filename, self.wrapped) ) self.filenames.add(filename) ret = self.wrapped(filename, *args, **kwargs) diff --git a/tests/test_api.py b/tests/test_api.py index 40054cc5..92d3cbc9 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -19,7 +19,7 @@ class ApiTest(CoverageTest): """Api-oriented tests for coverage.py.""" def clean_files(self, files, pats): - """Remove names matching `pats` from `files`, a list of filenames.""" + """Remove names matching `pats` from `files`, a list of file names.""" good = [] for f in files: for pat in pats: diff --git a/tests/test_farm.py b/tests/test_farm.py index fbb97bed..0db0af88 100644 --- a/tests/test_farm.py +++ b/tests/test_farm.py @@ -152,7 +152,7 @@ def run(cmds, rundir="src", outfile=None): `cmds` is a string, commands separated by newlines. `rundir` is the directory in which to run the commands. - `outfile` is a filename to redirect stdout to. + `outfile` is a file name to redirect stdout to. """ with change_dir(rundir): diff --git a/tests/test_oddball.py b/tests/test_oddball.py index 05c724b6..933551ac 100644 --- a/tests/test_oddball.py +++ b/tests/test_oddball.py @@ -321,7 +321,7 @@ class ExceptionTest(CoverageTest): cov.stop() # pragma: nested # Clean the line data and compare to expected results. - # The filenames are absolute, so keep just the base. + # The file names are absolute, so keep just the base. clean_lines = {} data = cov.get_data() for callname in callnames: |