diff options
-rw-r--r-- | CHANGES.rst | 2 | ||||
-rw-r--r-- | tests/test_concurrency.py | 4 |
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 |