From 08036b445b3851210518ac24ce8fe3540a451c86 Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Sun, 17 Mar 2019 20:11:01 -0700 Subject: [PATCH] set timeouts method to thread to avoid problems in parallel run --- tests/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/__main__.py b/tests/__main__.py index 9e7f03d86..a14479097 100644 --- a/tests/__main__.py +++ b/tests/__main__.py @@ -17,7 +17,8 @@ if len(sys.argv) == 1: else: params = " ".join(sys.argv[1:]) -cmd = "py.test -v -n=4 --timeout=600 --cov=dvc " "{params} ".format( - params=params +cmd = ( + "py.test -v -n=4 --timeout=600 --timeout_method=thread --cov=dvc " + "{params} ".format(params=params) ) check_call(cmd, shell=True)