From 2c9f8d299d71cd44a28829d4eed12adf43ae8b93 Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Fri, 3 Jan 2025 15:59:48 +0100 Subject: [PATCH 1/2] pypy310Packages.pyflakes: disable failing tests --- .../python-modules/pyflakes/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pyflakes/default.nix b/pkgs/development/python-modules/pyflakes/default.nix index 4550ca77e02b..04534f99c58d 100644 --- a/pkgs/development/python-modules/pyflakes/default.nix +++ b/pkgs/development/python-modules/pyflakes/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, + isPyPy, pythonAtLeast, pythonOlder, fetchFromGitHub, @@ -27,10 +28,17 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = lib.optionals (pythonAtLeast "3.13") [ - # https://github.com/PyCQA/pyflakes/issues/812 - "test_errors_syntax" - ]; + disabledTests = + lib.optionals (pythonAtLeast "3.13") [ + # https://github.com/PyCQA/pyflakes/issues/812 + "test_errors_syntax" + ] + ++ lib.optionals isPyPy [ + # https://github.com/PyCQA/pyflakes/issues/779 + "test_eofSyntaxError" + "test_misencodedFileUTF8" + "test_multilineSyntaxError" + ]; pythonImportsCheck = [ "pyflakes" ]; From 510a1ff255357e605d5acd305f65f814a9a5ec38 Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Fri, 3 Jan 2025 15:59:48 +0100 Subject: [PATCH 2/2] pypy310Packages.flake8: disable failing tests --- pkgs/development/python-modules/flake8/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/flake8/default.nix b/pkgs/development/python-modules/flake8/default.nix index 624f36a7447a..6f2a8c49d570 100644 --- a/pkgs/development/python-modules/flake8/default.nix +++ b/pkgs/development/python-modules/flake8/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, + isPyPy, pythonOlder, fetchFromGitHub, setuptools, @@ -35,6 +36,12 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; + disabledTests = lib.optionals isPyPy [ + # tests fail due to slightly different error position + "test_tokenization_error_is_a_syntax_error" + "test_tokenization_error_but_not_syntax_error" + ]; + meta = with lib; { changelog = "https://github.com/PyCQA/flake8/blob/${src.rev}/docs/source/release-notes/${version}.rst"; description = "Modular source code checker: pep8, pyflakes and co";