Unverified Commit 93a48d2b authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python311Packages.unittest-xml-reporting: Disable failing tests

parent 18bf35d6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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; {