diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_html.py | 14 | ||||
-rw-r--r-- | tests/test_plugins.py | 2 | ||||
-rw-r--r-- | tests/test_process.py | 2 | ||||
-rw-r--r-- | tests/test_xml.py | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/tests/test_html.py b/tests/test_html.py index fd22980e..f66dec64 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 db987039..18b662f7 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 4fe22a0f..3a05eaa5 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 8ba92d69..af4ecee7 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. """ |