From 6f0c856b91e0081c060779dd36a36635493efe31 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 19 Jul 2022 01:05:12 +0200 Subject: [PATCH] python3Packages.respx: run tests in legacy asyncio-mode Since pytest-asyncio==0.19.0 the strict mode has become the default. The respx module has not been upgraded with that in mind, so let's rollback that change to fix the tests. --- pkgs/development/python-modules/respx/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/respx/default.nix b/pkgs/development/python-modules/respx/default.nix index 241f0f9e9da4..c144ed9adb28 100644 --- a/pkgs/development/python-modules/respx/default.nix +++ b/pkgs/development/python-modules/respx/default.nix @@ -35,6 +35,10 @@ buildPythonPackage rec { trio ]; + pytestFlagsArray = [ + "--asyncio-mode=legacy" + ]; + postPatch = '' sed -i "/--cov/d" setup.cfg '';