From 93a48d2bf96757bd52c56019f5d2e9692c776030 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 24 Mar 2023 20:05:30 +0000 Subject: [PATCH] python311Packages.unittest-xml-reporting: Disable failing tests --- .../python-modules/unittest-xml-reporting/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/unittest-xml-reporting/default.nix b/pkgs/development/python-modules/unittest-xml-reporting/default.nix index fb4a3b543ce0..8497d17a5f37 100644 --- a/pkgs/development/python-modules/unittest-xml-reporting/default.nix +++ b/pkgs/development/python-modules/unittest-xml-reporting/default.nix @@ -2,6 +2,7 @@ , fetchFromGitHub , buildPythonPackage , lxml +, pythonAtLeast , pythonOlder , pytestCheckHook }: @@ -26,6 +27,12 @@ buildPythonPackage rec { pytestCheckHook ]; + pytestFlagsArray = lib.optionals (pythonAtLeast "3.11") [ + # AttributeError: 'tuple' object has no attribute 'shortDescription' + "--deselect=tests/testsuite.py::XMLTestRunnerTestCase::test_basic_unittest_constructs" + "--deselect=tests/testsuite.py::XMLTestRunnerTestCase::test_unexpected_success" + ]; + pythonImportsCheck = [ "xmlrunner" ]; meta = with lib; {