From d4c62fe65ed0fb736009d372dadeb7379bc8a911 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 25 May 2023 23:06:51 +0200 Subject: [PATCH] python311Packages.trio-asyncio: disable failing test Disabled a failing test, that has not been updated with Python 3.11 in mind. --- pkgs/development/python-modules/trio-asyncio/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/trio-asyncio/default.nix b/pkgs/development/python-modules/trio-asyncio/default.nix index 127da2d4766..3585e251991 100644 --- a/pkgs/development/python-modules/trio-asyncio/default.nix +++ b/pkgs/development/python-modules/trio-asyncio/default.nix @@ -6,6 +6,7 @@ , sniffio , pytest-trio , pytestCheckHook +, pythonAtLeast , pythonOlder }: @@ -49,6 +50,10 @@ buildPythonPackage rec { "tests/python" # tries to import internal API test.test_asyncio ]; + disabledTests = lib.optionals (pythonAtLeast "3.11") [ + "test_run_task" + ]; + pythonImportsCheck = [ "trio_asyncio" ];