summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-12-12 15:36:29 -0500
committerNed Batchelder <ned@nedbatchelder.com>2014-12-12 15:36:29 -0500
commit1b6700a8577a7658bb708faf1defd262969a06fc (patch)
treeb8c8ac59d506bdb57436069b5c3e6663ae455d91 /tests
parent6055667e8090fc09e55b96ae49d5ac6a37706ede (diff)
downloadpython-coveragepy-git-1b6700a8577a7658bb708faf1defd262969a06fc.tar.gz
For some reason, lowercase 'python' suddenly struck me as odd-looking. Fix them.
Diffstat (limited to 'tests')
-rw-r--r--tests/coveragetest.py2
-rw-r--r--tests/farm/html/src/bom.py2
-rw-r--r--tests/farm/html/src/isolatin1.py2
-rw-r--r--tests/farm/html/src/unicode.py2
-rw-r--r--tests/test_api.py12
-rw-r--r--tests/test_collector.py2
-rw-r--r--tests/test_oddball.py6
-rw-r--r--tests/test_plugins.py2
-rw-r--r--tests/test_testing.py2
9 files changed, 16 insertions, 16 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index 60ba5051..644f647e 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -77,7 +77,7 @@ class CoverageTest(
"""
cov.start()
try: # pragma: nested
- # Import the python file, executing it.
+ # Import the Python file, executing it.
mod = self.import_local_file(modname)
finally: # pragma: nested
# Stop Coverage.
diff --git a/tests/farm/html/src/bom.py b/tests/farm/html/src/bom.py
index 2db8b717..1aff5d52 100644
--- a/tests/farm/html/src/bom.py
+++ b/tests/farm/html/src/bom.py
@@ -1,4 +1,4 @@
-# A python source file in utf-8, with BOM
+# A Python source file in utf-8, with BOM.
math = "3×4 = 12, ÷2 = 6±0"
import sys
diff --git a/tests/farm/html/src/isolatin1.py b/tests/farm/html/src/isolatin1.py
index 057c097b..7a49b07d 100644
--- a/tests/farm/html/src/isolatin1.py
+++ b/tests/farm/html/src/isolatin1.py
@@ -1,4 +1,4 @@
-# A python source file in another encoding.
+# A Python source file in another encoding.
# -*- coding: iso8859-1 -*-
math = "34 = 12, 2 = 60"
diff --git a/tests/farm/html/src/unicode.py b/tests/farm/html/src/unicode.py
index f6a9a052..08e1b540 100644
--- a/tests/farm/html/src/unicode.py
+++ b/tests/farm/html/src/unicode.py
@@ -1,4 +1,4 @@
-# A python source file with exotic characters
+# A Python source file with exotic characters.
# -*- coding: utf-8 -*-
upside_down = "ʎd˙ǝbɐɹǝʌoɔ"
diff --git a/tests/test_api.py b/tests/test_api.py
index d5591d80..08f4e059 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -31,7 +31,7 @@ class SingletonApiTest(CoverageTest):
f = 7
""")
- # Import the python file, executing it.
+ # Import the Python file, executing it.
self.start_import_stop(coverage, modname)
def test_simple(self):
@@ -45,7 +45,7 @@ class SingletonApiTest(CoverageTest):
d = 5
""")
- # Import the python file, executing it.
+ # Import the Python file, executing it.
self.start_import_stop(coverage, "mycode")
_, statements, missing, missingtext = coverage.analysis("mycode.py")
@@ -117,7 +117,7 @@ class ApiTest(CoverageTest):
fooey = 17
""")
- # Import the python file, executing it.
+ # Import the Python file, executing it.
self.start_import_stop(cov, "mycode")
_, statements, missing, _ = cov.analysis("not_run.py")
@@ -135,7 +135,7 @@ class ApiTest(CoverageTest):
fooey = 17
""")
- # Import the python file, executing it.
+ # Import the Python file, executing it.
cov = coverage.coverage()
self.start_import_stop(cov, "mymain")
@@ -149,7 +149,7 @@ class ApiTest(CoverageTest):
filename, _, _, _ = cov.analysis(sys.modules["mymod"])
self.assertEqual(os.path.basename(filename), "mymod.py")
- # Import the python file, executing it again, once it's been compiled
+ # Import the Python file, executing it again, once it's been compiled
# already.
cov = coverage.coverage()
self.start_import_stop(cov, "mymain")
@@ -531,7 +531,7 @@ class AnalysisTest(CoverageTest):
fun2(3)
""")
- # Import the python file, executing it.
+ # Import the Python file, executing it.
self.start_import_stop(cov, "missing")
nums = cov._analyze("missing.py").numbers
diff --git a/tests/test_collector.py b/tests/test_collector.py
index 5f931385..5a8325c7 100644
--- a/tests/test_collector.py
+++ b/tests/test_collector.py
@@ -40,7 +40,7 @@ class CollectorTest(CoverageTest):
cov = coverage.coverage(include=["f1.py"], debug=['trace'])
cov._debug_file = debug_out
- # Import the python file, executing it.
+ # Import the Python file, executing it.
self.start_import_stop(cov, "f2")
# Grab all the filenames mentioned in debug output, there should be no
diff --git a/tests/test_oddball.py b/tests/test_oddball.py
index 3a013b04..5b623ae4 100644
--- a/tests/test_oddball.py
+++ b/tests/test_oddball.py
@@ -210,7 +210,7 @@ class PyexpatTest(CoverageTest):
cov = coverage.coverage()
cov.erase()
- # Import the python file, executing it.
+ # Import the Python file, executing it.
self.start_import_stop(cov, "outer")
_, statements, missing, _ = cov.analysis("trydom.py")
@@ -320,8 +320,8 @@ class ExceptionTest(CoverageTest):
lines = cov.data.line_data()
clean_lines = {}
for f, llist in lines.items():
- # f is a path to a python module, so we drop the '.py' to get
- # a callname
+ # f is a path to a Python module, so we drop the '.py' to get
+ # a callname.
basename = os.path.basename(f)
assert basename.endswith(".py")
if basename[:-3] in callnames:
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
index 874cf521..6a1d1f7d 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -163,7 +163,7 @@ if not C_TRACER:
snoop_on_callbacks(cov)
cov.config["run:plugins"] = ["tests.plugin1"]
- # Import the python file, executing it.
+ # Import the Python file, executing it.
self.start_import_stop(cov, "simple")
_, statements, missing, _ = cov.analysis("simple.py")
diff --git a/tests/test_testing.py b/tests/test_testing.py
index d714031c..10370e54 100644
--- a/tests/test_testing.py
+++ b/tests/test_testing.py
@@ -78,7 +78,7 @@ class CoverageTestTest(CoverageTest):
self.assert_starts_with("xyz\nabc", "a")
def test_sub_python_is_this_python(self):
- # Try it with a python command.
+ # Try it with a Python command.
os.environ['COV_FOOBAR'] = 'XYZZY'
self.make_file("showme.py", """\
import os, sys