diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-09-29 18:46:52 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-09-29 18:46:52 -0400 |
commit | 4d61fff19caa797947d8818d711227ad85a8aed5 (patch) | |
tree | c515af30764bf5da621ffb4b70a4cb2009bfb62c | |
parent | 0ded3df77d1bea48f98c33608f2c251a2da0744b (diff) | |
download | python-coveragepy-git-4d61fff19caa797947d8818d711227ad85a8aed5.tar.gz |
test: fix flaky multiprocessing tests
Tests are failing because we expect to see three different pids, but
only get two. Is that because the work is being completed too quickly?
-rw-r--r-- | tests/test_concurrency.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index 682e3cf0..0b8d6a8b 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -336,8 +336,8 @@ MULTI_CODE = """ def process_worker_main(args): # Need to pause, or the tasks go too quickly, and some processes # in the pool don't get any work, and then don't record data. - time.sleep(0.02) ret = work(*args) + time.sleep(0.1) return os.getpid(), ret if __name__ == "__main__": # pragma: no branch |