From 5975b3f92ab21e708c4b504ef2e2642b4ee65600 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 8 Jun 2023 01:47:23 +0200 Subject: [PATCH] python311Packages.pyzerproc: disable failing tests --- pkgs/development/python-modules/pyzerproc/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/pyzerproc/default.nix b/pkgs/development/python-modules/pyzerproc/default.nix index a453014fe8be..b5eb54916717 100644 --- a/pkgs/development/python-modules/pyzerproc/default.nix +++ b/pkgs/development/python-modules/pyzerproc/default.nix @@ -5,6 +5,7 @@ , fetchFromGitHub , pytest-asyncio , pytest-mock +, pythonAtLeast , pytestCheckHook , pythonOlder }: @@ -38,6 +39,11 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTestPaths = lib.optionals (pythonAtLeast "3.11") [ + # unittest.mock.InvalidSpecError: Cannot spec a Mock object. + "tests/test_light.py" + ]; + pythonImportsCheck = [ "pyzerproc" ];