diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2012-10-21 15:05:18 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-10-21 15:05:18 -0400 |
| commit | d19b51a1eedfa1d859fc298d4d4c2abbbb69aefe (patch) | |
| tree | f0937245fca533f928816c6d8762737102fbe7ea /test | |
| parent | 78fb1561f7060b20ca527a8a7e7f9bd5018891cf (diff) | |
| download | python-coveragepy-git-d19b51a1eedfa1d859fc298d4d4c2abbbb69aefe.tar.gz | |
Minor style tweaks
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_api.py b/test/test_api.py index 48f10829..e24156f2 100644 --- a/test/test_api.py +++ b/test/test_api.py @@ -90,7 +90,7 @@ class SingletonApiTest(CoverageTest): class ApiTest(CoverageTest): """Api-oriented tests for Coverage.""" - def clean_files(self, files, *pats): + def clean_files(self, files, pats): """Remove names matching `pats` from `files`, a list of filenames.""" good = [] for f in files: @@ -104,7 +104,7 @@ class ApiTest(CoverageTest): def listdir(self, where): """Like os.listdir, but exclude files we don't care about.""" files = os.listdir(where) - return self.clean_files(files, "*.pyc", "__pycache__") + return self.clean_files(files, ["*.pyc", "__pycache__"]) def test_unexecuted_file(self): cov = coverage.coverage() |
