diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2014-12-13 18:51:23 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-12-13 18:51:23 -0500 |
| commit | 52f0f80fb552789c79d536a8aca265da04143a58 (patch) | |
| tree | a190e4b70b08cf9ed09aeda2d428348287011adf | |
| parent | 70a5b5cde36adbe4002f8e3f73ec0d7af31ea387 (diff) | |
| download | python-coveragepy-52f0f80fb552789c79d536a8aca265da04143a58.tar.gz | |
PEP8, pylint tweaks
| -rw-r--r-- | coverage/html.py | 2 | ||||
| -rw-r--r-- | igor.py | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/coverage/html.py b/coverage/html.py index 677e5e8..9872708 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -278,7 +278,7 @@ class HtmlStatus(object): STATUS_FILE = "status.json" STATUS_FORMAT = 1 - # pylint: disable=wrong-spelling-in-comment + # pylint: disable=wrong-spelling-in-comment,useless-suppression # The data looks like: # # { @@ -42,6 +42,7 @@ def do_remove_extension(): except OSError: pass + def run_tests(tracer, *nose_args): """The actual running of tests.""" import nose.core @@ -64,6 +65,7 @@ def run_tests(tracer, *nose_args): nose_args = ["nosetests"] + list(nose_args) nose.core.main(argv=nose_args) + def run_tests_with_coverage(tracer, *nose_args): """Run tests, but with coverage.""" import coverage @@ -105,7 +107,7 @@ def run_tests_with_coverage(tracer, *nose_args): if getattr(mod, '__file__', "??").startswith(covdir): covmods[name] = mod del sys.modules[name] - import coverage # don't warn about re-import: pylint: disable=reimported + import coverage # pylint: disable=reimported sys.modules.update(covmods) # Run nosetests, with the arguments from our command line. @@ -120,6 +122,7 @@ def run_tests_with_coverage(tracer, *nose_args): cov.save() + def do_combine_html(): """Combine data from a meta-coverage run, and make the HTML report.""" import coverage @@ -130,6 +133,7 @@ def do_combine_html(): cov.save() cov.html_report() + def do_test_with_tracer(tracer, *noseargs): """Run nosetests with a particular tracer.""" if os.environ.get("COVERAGE_COVERAGE", ""): @@ -137,6 +141,7 @@ def do_test_with_tracer(tracer, *noseargs): else: return run_tests(tracer, *noseargs) + def do_zip_mods(): """Build the zipmods.zip file.""" zf = zipfile.ZipFile("tests/zipmods.zip", "w") @@ -166,6 +171,7 @@ def do_zip_mods(): zf.close() + def do_install_egg(): """Install the egg1 egg for tests.""" # I am pretty certain there are easier ways to install eggs... @@ -180,6 +186,7 @@ def do_install_egg(): ) os.chdir(cur_dir) + def do_check_eol(): """Check files for incorrect newlines and trailing whitespace.""" |
