From d6c0e7e2035d967bd0cc46b5528f8eb9a9f0534b Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Mon, 10 Mar 2025 14:22:04 +0200 Subject: [PATCH] test(python): rerun tests when first response chunk is lost Also, make sure that Python tests are using `python/setup.cfg`. [no changelog] --- python/tox.ini | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tox.ini b/python/tox.ini index 2d821bd11f..7e4638be08 100644 --- a/python/tox.ini +++ b/python/tox.ini @@ -26,7 +26,7 @@ commands = # Smoke-test trezorctl trezorctl --help # Run test suite - !minimal: pytest --random-order tests + !minimal: pytest -c setup.cfg --random-order tests [testenv:py{38,39,310,311}-click{7,80,81}] deps = diff --git a/setup.cfg b/setup.cfg index 40f4c4a44f..49dba35610 100644 --- a/setup.cfg +++ b/setup.cfg @@ -36,7 +36,7 @@ per-file-ignores = tests/*:ANN [tool:pytest] -addopts = -rfE --strict-markers --random-order +addopts = -rfER --strict-markers --random-order --only-rerun='RuntimeError: Unexpected magic characters: 3f' --reruns=5 testpaths = tests crypto storage python/tests xfail_strict = true junit_family = xunit2