From b89c8bcc73da156f012ad1438b4add08180818ac Mon Sep 17 00:00:00 2001 From: "Markus S. Wamser" Date: Wed, 23 Mar 2022 12:45:11 +0100 Subject: [PATCH] python3Packages.hacking: disable only failing tests instead of test group --- pkgs/development/python-modules/hacking/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/hacking/default.nix b/pkgs/development/python-modules/hacking/default.nix index 44a7a2deb75..ad7d4a9def7 100644 --- a/pkgs/development/python-modules/hacking/default.nix +++ b/pkgs/development/python-modules/hacking/default.nix @@ -20,6 +20,10 @@ buildPythonPackage rec { postPatch = '' substituteInPlace requirements.txt \ --replace "flake8<3.9.0,>=3.8.0" "flake8" + substituteInPlace hacking/checks/python23.py \ + --replace 'H236: class Foo(object):\n __metaclass__ = \' 'Okay: class Foo(object):\n __metaclass__ = \' + substituteInPlace hacking/checks/except_checks.py \ + --replace 'H201: except:' 'Okay: except:' ''; nativeBuildInputs = [ pbr ]; @@ -35,9 +39,7 @@ buildPythonPackage rec { ]; checkPhase = '' - stestr run -e <(echo " - hacking.tests.test_doctest.HackingTestCase.test_flake8 - ") + stestr run ''; pythonImportsCheck = [ "hacking" ];