diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-03-11 07:27:59 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-03-11 07:27:59 -0400 |
commit | 5898eeefc6c9885782ede16b65fc04086aed2fcd (patch) | |
tree | 0a0675b7321fc9fca0a793b8bb49211004cb43a2 /tests/coveragetest.py | |
parent | 8cc4ffa19dd13d8433878aab3458f6c7572e74b5 (diff) | |
download | python-coveragepy-git-5898eeefc6c9885782ede16b65fc04086aed2fcd.tar.gz |
Cleaner tests of the file matchers
Diffstat (limited to 'tests/coveragetest.py')
-rw-r--r-- | tests/coveragetest.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py index 0467d808..a309f17d 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -167,13 +167,15 @@ class CoverageTest(TestCase): return self.captured_stderr.getvalue() def make_file(self, filename, text="", newline=None): - """Create a temp file. + """Create a file for testing. - `filename` is the path to the file, including directories if desired, - and `text` is the content. If `newline` is provided, it is a string - that will be used as the line endings in the created file. + `filename` is the relative path to the file, including directories if + desired, which will be created if need be. `text` is the content to + create in the file. If `newline` is provided, it is a string that will + be used as the line endings in the created file, otherwise the line + endings are as provided in `text`. - Returns the path to the file. + Returns `filename`. """ # Tests that call `make_file` should be run in a temp environment. |