summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-04-27 16:31:27 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-04-28 13:00:36 -0400
commit8810f059d700900624431720e6c034f1dca779c0 (patch)
tree814773082a56736e872913d9d97ba8a36ab901ac
parent0f682599ac6a1c0568b97dd1b392edce2d8d18df (diff)
downloadpython-coveragepy-git-8810f059d700900624431720e6c034f1dca779c0.tar.gz
Fix a few capitalizations
-rw-r--r--CHANGES.rst2
-rw-r--r--tests/test_concurrency.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index dbb9f74c..3b884772 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -19,7 +19,7 @@ Unreleased
- Dynamic contexts can now be determined by third-party code in a plugin.
Thanks, Justas Sadzevičius.
-- the ``dynamic_context = test_function`` setting now works with Python 2
+- The ``dynamic_context = test_function`` setting now works with Python 2
old-style classes, though it only reports the method name, not the class it
was defined on. Closes `issue 797`_.
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py
index 85f4a3f2..1463b29d 100644
--- a/tests/test_concurrency.py
+++ b/tests/test_concurrency.py
@@ -479,7 +479,7 @@ def test_coverage_stop_in_threads():
return
has_stopped_coverage.append(ident)
- cov = coverage.coverage()
+ cov = coverage.Coverage()
cov.start()
t = threading.Thread(target=run_thread) # pragma: nested
@@ -528,7 +528,7 @@ def test_thread_safe_save_data(tmpdir):
# still running.
duration = 0.01
for _ in range(3):
- cov = coverage.coverage()
+ cov = coverage.Coverage()
cov.start()
threads = [threading.Thread(target=random_load) for _ in range(10)] # pragma: nested