From 6e5d2c7e838827d754a5f3cb16d0d86c8e202489 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 16 Sep 2023 01:59:31 +0200 Subject: [PATCH] python311Packages.rich: disable failing tests These are due to mismatching expectations with pygments 2.16.1. --- pkgs/development/python-modules/rich/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/development/python-modules/rich/default.nix b/pkgs/development/python-modules/rich/default.nix index c6646749730d..86c3ac1ffeeb 100644 --- a/pkgs/development/python-modules/rich/default.nix +++ b/pkgs/development/python-modules/rich/default.nix @@ -46,6 +46,20 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTests = [ + # pygments 2.16 compat + # https://github.com/Textualize/rich/issues/3088 + "test_card_render" + "test_markdown_render" + "test_markdown_render" + "test_python_render" + "test_python_render_simple" + "test_python_render_simple_passing_lexer_instance" + "test_python_render_indent_guides" + "test_option_no_wrap" + "test_syntax_highlight_ranges" + ]; + pythonImportsCheck = [ "rich" ];