python311Packages.pyzerproc: disable failing tests

This commit is contained in:
Martin Weinelt 2023-06-08 01:47:23 +02:00
parent c0ef3e6121
commit 5975b3f92a
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -5,6 +5,7 @@
, fetchFromGitHub , fetchFromGitHub
, pytest-asyncio , pytest-asyncio
, pytest-mock , pytest-mock
, pythonAtLeast
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
}: }:
@ -38,6 +39,11 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
disabledTestPaths = lib.optionals (pythonAtLeast "3.11") [
# unittest.mock.InvalidSpecError: Cannot spec a Mock object.
"tests/test_light.py"
];
pythonImportsCheck = [ pythonImportsCheck = [
"pyzerproc" "pyzerproc"
]; ];