summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-07-25 11:27:25 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-07-25 11:27:25 -0400
commit42f1dac01d72202b019063bfd5d1ffe9588e676b (patch)
treef472d010f4471cc98febcbbfd719335bada88afb /tests
parent13420e9cf4f37c2c0742f200d943f398cb790643 (diff)
downloadpython-coveragepy-42f1dac01d72202b019063bfd5d1ffe9588e676b.tar.gz
Better spelling.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_html.py14
-rw-r--r--tests/test_plugins.py2
-rw-r--r--tests/test_process.py2
-rw-r--r--tests/test_xml.py2
4 files changed, 10 insertions, 10 deletions
diff --git a/tests/test_html.py b/tests/test_html.py
index fd22980..f66dec6 100644
--- a/tests/test_html.py
+++ b/tests/test_html.py
@@ -356,16 +356,16 @@ class HtmlTest(HtmlTestHelpers, CoverageTest):
cov.html_report()
def test_extensionless_file_collides_with_extension(self):
- # It used to be that "afile" and "afile.py" would both be reported to
- # "afile.html". Now they are not.
+ # It used to be that "program" and "program.py" would both be reported
+ # to "program.html". Now they are not.
# https://bitbucket.org/ned/coveragepy/issue/69
- self.make_file("afile", "import afile\n")
- self.make_file("afile.py", "a = 1\n")
- self.run_command("coverage run afile")
+ self.make_file("program", "import program\n")
+ self.make_file("program.py", "a = 1\n")
+ self.run_command("coverage run program")
self.run_command("coverage html")
self.assert_exists("htmlcov/index.html")
- self.assert_exists("htmlcov/afile.html")
- self.assert_exists("htmlcov/afile_py.html")
+ self.assert_exists("htmlcov/program.html")
+ self.assert_exists("htmlcov/program_py.html")
def test_has_date_stamp_in_files(self):
self.create_initial_files()
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
index db98703..18b662f 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -512,7 +512,7 @@ class BadPluginTest(FileTracerTest):
# The message can be in two forms:
# Disabling plugin '...' due to previous exception
# or:
- # Disabling plugin '...' due to an excepton:
+ # Disabling plugin '...' due to an exception:
msg = "Disabling plugin '%s.%s' due to " % (module_name, plugin_name)
warnings = stderr.count(msg)
self.assertEqual(warnings, 1)
diff --git a/tests/test_process.py b/tests/test_process.py
index 4fe22a0..3a05eaa 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -768,7 +768,7 @@ def possible_pth_dirs():
class ProcessCoverageMixin(object):
- """Set up a .pth file that causes all sub-processes to be coverage'd"""
+ """Set up a .pth file to coverage-measure all sub-processes."""
def setUp(self):
super(ProcessCoverageMixin, self).setUp()
diff --git a/tests/test_xml.py b/tests/test_xml.py
index 8ba92d6..af4ecee 100644
--- a/tests/test_xml.py
+++ b/tests/test_xml.py
@@ -33,7 +33,7 @@ class XmlTestHelpers(CoverageTest):
Makes `width` directories, named d0 .. d{width-1}. Each directory has
__init__.py, and `width` files, named f0.py .. f{width-1}.py. Each
- directory also has `width` subdirectories, in the same fashion, until
+ directory also has `width` sub-directories, in the same fashion, until
a depth of `depth` is reached.
"""