From 6b40b65cca732d0931978d72252a44ccb2290165 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 8 Jun 2023 13:53:02 +0200 Subject: [PATCH] python310Packages.zigpy-znp: Remove xdist, rerun failed tests Clean out disabled tests, remove xdist because on aarch64-linux I could see racy tests that were run on an already closed event loop. Then there was some flakyness, for which rerunfailures made sense to use, ultimately making the test suite more stable. --- .../python-modules/zigpy-znp/default.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/zigpy-znp/default.nix b/pkgs/development/python-modules/zigpy-znp/default.nix index 859bb451203a..e110e001c616 100644 --- a/pkgs/development/python-modules/zigpy-znp/default.nix +++ b/pkgs/development/python-modules/zigpy-znp/default.nix @@ -6,8 +6,8 @@ , jsonschema , pytest-asyncio , pytest-mock +, pytest-rerunfailures , pytest-timeout -, pytest-xdist , pytestCheckHook , pythonOlder , voluptuous @@ -44,20 +44,13 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest-asyncio pytest-mock + pytest-rerunfailures pytest-timeout - pytest-xdist pytestCheckHook ]; - disabledTests = [ - # https://github.com/zigpy/zigpy-znp/issues/209 - "test_join_device" - "test_permit_join" - "test_request_recovery_route_rediscovery_af" - "test_request_recovery_route_rediscovery_zdo" - "test_zigpy_request" - "test_zigpy_request_failure" - "test_mgmt_nwk_update_req" + pytestFlagsArray = [ + "--reruns=3" ]; pythonImportsCheck = [