diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-10-25 16:45:55 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-10-25 16:45:55 -0400 |
commit | ae55ce98dc0ed96d7813cad81d6b62c499421686 (patch) | |
tree | 7a8c9a22247dde7afecc1210857fee589bd94c75 /test | |
parent | 88a2ab393509543432836fca3c0c186284ddb088 (diff) | |
download | python-coveragepy-ae55ce98dc0ed96d7813cad81d6b62c499421686.tar.gz |
Pylint is a stern taskmaster
Diffstat (limited to 'test')
-rw-r--r-- | test/covmodzip1.py | 2 | ||||
-rw-r--r-- | test/test_coverage.py | 3 | ||||
-rw-r--r-- | test/try_execfile.py | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/test/covmodzip1.py b/test/covmodzip1.py index c35688a..3ec4cdc 100644 --- a/test/covmodzip1.py +++ b/test/covmodzip1.py @@ -1,3 +1,3 @@ -# covmodzip.py: for putting into a zip file. +"""covmodzip.py: for putting into a zip file.""" j = 1 j += 1 diff --git a/test/test_coverage.py b/test/test_coverage.py index 16c0e06..7d6df25 100644 --- a/test/test_coverage.py +++ b/test/test_coverage.py @@ -1737,7 +1737,8 @@ class ProcessTest(CoverageTest): self.assert_matches(out, "No source for code: '.*fleeting.py'") self.assert_("Traceback" not in out) - # It happens that the code paths are different for *.py and other files. + # It happens that the code paths are different for *.py and other + # files, so try again with no extension. self.make_file("fleeting", """\ s = 'goodbye, cruel world!' """) diff --git a/test/try_execfile.py b/test/try_execfile.py index 9a8804a..d7ea439 100644 --- a/test/try_execfile.py +++ b/test/try_execfile.py @@ -7,6 +7,7 @@ DATA = "xyzzy" import __main__ def my_function(a): + """A function to force execution of module-level values.""" return "my_fn(%r)" % a FN_VAL = my_function("fooey") |