From 3ed6417754f91ffd37412b84ba582cda23007ee6 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Tue, 10 Sep 2019 12:07:03 +0200 Subject: [PATCH] pragmatismatic: run flaky tests three times to see if we can get more "green" CI runs this way ... thanks to @the-compiler also modernize plugin usage --- python/README.rst | 2 +- python/tox.ini | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/python/README.rst b/python/README.rst index 22de2bb9b..49c86cd4a 100644 --- a/python/README.rst +++ b/python/README.rst @@ -65,7 +65,7 @@ Afterwards ``which python`` tells you that it comes out of the "venv" directory that contains all python install artifacts. Let's first install test tools:: - pip install pytest pytest-timeout requests + pip install pytest pytest-timeout pytest-rerunfailures requests then cargo-build and install the deltachat bindings:: diff --git a/python/tox.ini b/python/tox.ini index c0776790a..51392338d 100644 --- a/python/tox.ini +++ b/python/tox.ini @@ -16,7 +16,10 @@ passenv = DCC_PY_LIVECONFIG deps = pytest - pytest-faulthandler + pytest-rerunfailures + pytest-timeout + pytest-xdist + auditwheel pdbpp requests @@ -51,11 +54,12 @@ commands = [pytest] -addopts = -v -rs +addopts = -v -rs --reruns 3 --reruns-delay 2 python_files = tests/test_*.py norecursedirs = .tox xfail_strict=true -timeout = 60 +timeout = 60 +timeout_method = thread [flake8] max-line-length = 120