summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-11-27 10:36:16 -0500
committerNed Batchelder <ned@nedbatchelder.com>2014-11-27 10:36:16 -0500
commit1fa418c6c1c33117308e3d94f18f8fc1a9193393 (patch)
tree3502c943b2a3da2c41a4b59faf002db94cf3f9ac /tests
parenta8f8bb898ac35acd493524d470223319b2271f4a (diff)
downloadpython-coveragepy-git-1fa418c6c1c33117308e3d94f18f8fc1a9193393.tar.gz
Try out pylint spelling. Kinda noisy, but fixed some stuff.
Diffstat (limited to 'tests')
-rw-r--r--tests/backtest.py2
-rw-r--r--tests/coveragetest.py6
-rw-r--r--tests/test_api.py4
-rw-r--r--tests/test_config.py4
-rw-r--r--tests/test_farm.py2
-rw-r--r--tests/test_files.py2
-rw-r--r--tests/test_html.py4
-rw-r--r--tests/test_misc.py4
-rw-r--r--tests/test_phystokens.py2
-rw-r--r--tests/test_process.py8
-rw-r--r--tests/test_testing.py8
11 files changed, 23 insertions, 23 deletions
diff --git a/tests/backtest.py b/tests/backtest.py
index 574e6ac4..73b1067d 100644
--- a/tests/backtest.py
+++ b/tests/backtest.py
@@ -10,7 +10,7 @@ import subprocess
# This isn't really a backward compatibility thing, should be moved into a
# helpers file or something.
def run_command(cmd):
- """Run a command in a subprocess.
+ """Run a command in a sub-process.
Returns the exit status code and the combined stdout and stderr.
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index a680ed46..60ba5051 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -274,7 +274,7 @@ class CoverageTest(
self.assertEqual(ret_actual, ret)
def run_command(self, cmd):
- """Run the command-line `cmd` in a subprocess, and print its output.
+ """Run the command-line `cmd` in a sub-process, and print its output.
Use this when you need to test the process behavior of coverage.
@@ -283,7 +283,7 @@ class CoverageTest(
Returns the process' stdout text.
"""
- # Running Python subprocesses can be tricky. Use the real name of our
+ # Running Python sub-processes can be tricky. Use the real name of our
# own executable. So "python foo.py" might get executed as
# "python3.3 foo.py". This is important because Python 3.x doesn't
# install as "python", so you might get a Python 2 executable instead
@@ -295,7 +295,7 @@ class CoverageTest(
return output
def run_command_status(self, cmd):
- """Run the command-line `cmd` in a subprocess, and print its output.
+ """Run the command-line `cmd` in a sub-process, and print its output.
Use this when you need to test the process behavior of coverage.
diff --git a/tests/test_api.py b/tests/test_api.py
index ca65d6de..d5591d80 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -1,4 +1,4 @@
-"""Tests for Coverage's api."""
+"""Tests for Coverage's API."""
import fnmatch, os, re, sys, textwrap
@@ -495,7 +495,7 @@ class ReportIncludeOmitTest(OmitIncludeTestsMixin, CoverageTest):
class XmlIncludeOmitTest(OmitIncludeTestsMixin, CoverageTest):
- """Tests of the xml include/omit functionality.
+ """Tests of the XML include/omit functionality.
This also takes care of the HTML and annotate include/omit, by virtue
of the structure of the code.
diff --git a/tests/test_config.py b/tests/test_config.py
index 34727ae6..e0424923 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -20,7 +20,7 @@ class ConfigTest(CoverageTest):
self.assertEqual(cov.config.data_file, ".coverage")
def test_arguments(self):
- # Arguments to the constructor are applied to the configuation.
+ # Arguments to the constructor are applied to the configuration.
cov = coverage.coverage(timid=True, data_file="fooey.dat")
self.assertTrue(cov.config.timid)
self.assertFalse(cov.config.branch)
@@ -129,7 +129,7 @@ class ConfigTest(CoverageTest):
)
def test_tweaks_after_constructor(self):
- # Arguments to the constructor are applied to the configuation.
+ # Arguments to the constructor are applied to the configuration.
cov = coverage.coverage(timid=True, data_file="fooey.dat")
cov.config["run:timid"] = False
diff --git a/tests/test_farm.py b/tests/test_farm.py
index 661c67b7..31bd4c65 100644
--- a/tests/test_farm.py
+++ b/tests/test_farm.py
@@ -1,4 +1,4 @@
-"""Run tests in the farm subdirectory. Designed for nose."""
+"""Run tests in the farm sub-directory. Designed for nose."""
import difflib, filecmp, fnmatch, glob, os, re, shutil, sys
from nose.plugins.skip import SkipTest
diff --git a/tests/test_files.py b/tests/test_files.py
index 6c5a332d..00142ac2 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -41,7 +41,7 @@ class FileLocatorTest(CoverageTest):
# https://bitbucket.org/ned/coveragepy/issue/194
# Build a path that has two pieces matching the absolute path prefix.
# Technically, this test doesn't do that on Windows, but drive
- # letters make that impractical to acheive.
+ # letters make that impractical to achieve.
fl = FileLocator()
d = abs_file(os.curdir)
trick = os.path.splitdrive(d)[1].lstrip(os.path.sep)
diff --git a/tests/test_html.py b/tests/test_html.py
index 948a422f..9448447b 100644
--- a/tests/test_html.py
+++ b/tests/test_html.py
@@ -244,14 +244,14 @@ class HtmlWithUnparsableFilesTest(HtmlTestHelpers, CoverageTest):
self.make_file("innocuous.py", "<h1>This isn't python!</h1>")
cov.html_report(ignore_errors=True)
self.assert_exists("htmlcov/index.html")
- # this would be better as a glob, if the html layout changes:
+ # This would be better as a glob, if the HTML layout changes:
self.assert_doesnt_exist("htmlcov/innocuous.html")
def test_dothtml_not_python(self):
# We run a .html file, and when reporting, we can't parse it as
# Python. Since it wasn't .py, no error is reported.
- # Run an "html" file
+ # Run an "HTML" file
self.make_file("innocuous.html", "a = 3")
self.run_command("coverage run innocuous.html")
# Before reporting, change it to be an HTML file.
diff --git a/tests/test_misc.py b/tests/test_misc.py
index 977378d5..7b7d51d0 100644
--- a/tests/test_misc.py
+++ b/tests/test_misc.py
@@ -34,11 +34,11 @@ class RemoveFileTest(CoverageTest):
"""Tests of misc.file_be_gone."""
def test_remove_nonexistent_file(self):
- # it's ok to try to remove a file that doesn't exist.
+ # It's OK to try to remove a file that doesn't exist.
file_be_gone("not_here.txt")
def test_remove_actual_file(self):
- # it really does remove a file that does exist.
+ # It really does remove a file that does exist.
self.make_file("here.txt", "We are here, we are here, we are here!")
file_be_gone("here.txt")
self.assert_doesnt_exist("here.txt")
diff --git a/tests/test_phystokens.py b/tests/test_phystokens.py
index c5289553..ccd5682a 100644
--- a/tests/test_phystokens.py
+++ b/tests/test_phystokens.py
@@ -21,7 +21,7 @@ HERE = os.path.split(__file__)[0]
class PhysTokensTest(CoverageTest):
- """Tests for Coverage.py's improver tokenizer."""
+ """Tests for Coverage.py's improved tokenizer."""
run_in_temp_dir = False
diff --git a/tests/test_process.py b/tests/test_process.py
index 7b416a00..1185c25c 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -665,7 +665,7 @@ class FailUnderTest(CoverageTest):
class ProcessCoverageMixin(object):
- """Set up a .pth file that causes all subprocesses to be coverage'd"""
+ """Set up a .pth file that causes all sub-processes to be coverage'd"""
def setUp(self):
super(ProcessCoverageMixin, self).setUp()
# Find a place to put a .pth file.
@@ -691,12 +691,12 @@ class ProcessCoverageMixin(object):
class ProcessStartupTest(ProcessCoverageMixin, CoverageTest):
- """Test that we can measure coverage in subprocesses."""
+ """Test that we can measure coverage in sub-processes."""
def test_subprocess_with_pth_files(self): # pragma: not covered
if METACOV:
raise SkipTest(
- "Can't test subprocess pth file suppport during metacoverage"
+ "Can't test sub-process pth file suppport during metacoverage"
)
# Main will run sub.py
@@ -744,7 +744,7 @@ class ProcessStartupWithSourceTest(ProcessCoverageMixin, CoverageTest):
): # pragma: not covered
if METACOV:
raise SkipTest(
- "Can't test subprocess pth file suppport during metacoverage"
+ "Can't test sub-process pth file suppport during metacoverage"
)
def fullname(modname):
diff --git a/tests/test_testing.py b/tests/test_testing.py
index 05db7298..d714031c 100644
--- a/tests/test_testing.py
+++ b/tests/test_testing.py
@@ -120,10 +120,10 @@ def same_python_executable(e1, e2):
e2 = os.path.basename(e2)
if e1 == "python" or e2 == "python" or e1 == e2:
- # python and python2.3: ok
- # python2.3 and python: ok
- # python and python: ok
- # python2.3 and python2.3: ok
+ # Python and Python2.3: OK
+ # Python2.3 and Python: OK
+ # Python and Python: OK
+ # Python2.3 and Python2.3: OK
return True
return False # pragma: only failure