python3Packages.testfixtures: disable failing tests

This commit is contained in:
Fabian Affolter 2022-01-13 22:17:32 +01:00
parent 36797a3c65
commit d79b4037a3

View File

@ -1,9 +1,10 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, mock
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, sybil
, twisted
, zope_component
@ -12,6 +13,9 @@
buildPythonPackage rec {
pname = "testfixtures";
version = "6.18.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
@ -19,29 +23,42 @@ buildPythonPackage rec {
};
checkInputs = [
pytestCheckHook
mock
pytestCheckHook
sybil
zope_component
twisted
zope_component
];
doCheck = !isPy27;
disabledTestPaths = [
# Django is too much hasle to setup at the moment
"testfixtures/tests/test_django"
];
disabledTests = lib.optionals (pythonAtLeast "3.10") [
# https://github.com/simplistix/testfixtures/issues/168
"test_invalid_communicate_call"
"test_invalid_kill"
"test_invalid_parameters"
"test_invalid_poll"
"test_invalid_send_signal"
"test_invalid_terminate"
"test_invalid_wait_call"
"test_replace_delattr_cant_remove"
"test_replace_delattr_cant_remove_not_strict"
];
pytestFlagsArray = [
"testfixtures/tests"
];
pythonImportsCheck = [ "testfixtures" ];
pythonImportsCheck = [
"testfixtures"
];
meta = with lib; {
description = "Collection of helpers and mock objects for unit tests and doc tests";
homepage = "https://github.com/Simplistix/testfixtures";
description = "A collection of helpers and mock objects for unit tests and doc tests";
license = licenses.mit;
maintainers = with maintainers; [ siriobalmelli ];
};