summaryrefslogtreecommitdiff
path: root/tests/test_concurrency.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-11-26 15:11:21 -0500
committerNed Batchelder <ned@nedbatchelder.com>2019-11-26 15:45:36 -0500
commit4e3e44bcea08674219e2ed16617633a562763f67 (patch)
tree25d382115f0bdafa2b90e11e27ae0f8a1edf7249 /tests/test_concurrency.py
parent34e00adac3a829160d6fe50a6ec7f8e632ef24a7 (diff)
downloadpython-coveragepy-git-4e3e44bcea08674219e2ed16617633a562763f67.tar.gz
Make this test more resilient
Diffstat (limited to 'tests/test_concurrency.py')
-rw-r--r--tests/test_concurrency.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py
index 9d777afe..a397ea99 100644
--- a/tests/test_concurrency.py
+++ b/tests/test_concurrency.py
@@ -487,11 +487,10 @@ def test_coverage_stop_in_threads():
time.sleep(0.1) # pragma: nested
cov.stop() # pragma: nested
- time.sleep(0.1)
+ t.join()
assert has_started_coverage == [t.ident]
assert has_stopped_coverage == [t.ident]
- t.join()
def test_thread_safe_save_data(tmpdir):