summaryrefslogtreecommitdiff
path: root/tests/test_concurrency.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-01-17 20:23:35 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-01-17 20:23:35 -0500
commit1900796eaabe312785fc784a87e6ef8d8368ba7b (patch)
treef0a87665512b2894e646f2b4cf8aa00109ae604d /tests/test_concurrency.py
parentdce369833c79dcf7da6fc6e2a9f3363407a7d58d (diff)
downloadpython-coveragepy-git-1900796eaabe312785fc784a87e6ef8d8368ba7b.tar.gz
Use @flaky to prevent occasional multiprocessing failures
Diffstat (limited to 'tests/test_concurrency.py')
-rw-r--r--tests/test_concurrency.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py
index a7dac064..f2aa7977 100644
--- a/tests/test_concurrency.py
+++ b/tests/test_concurrency.py
@@ -5,6 +5,8 @@
import threading
+from flaky import flaky
+
import coverage
from coverage import env
from coverage.files import abs_file
@@ -349,6 +351,7 @@ MULTI_CODE = """
"""
+@flaky # Sometimes a test fails due to inherent randomness. Try one more time.
class MultiprocessingTest(CoverageTest):
"""Test support of the multiprocessing module."""