From 617f21be79fe1a7946f474fe020dd4f795d3ac95 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 16 Jun 2023 11:48:45 +0200 Subject: [PATCH] python311Packages.w3lib: disable regressed test (#238004) Co-authored-by: Mario Rodas --- pkgs/development/python-modules/w3lib/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/w3lib/default.nix b/pkgs/development/python-modules/w3lib/default.nix index a01b1e5f5f9d..08ce68fdd616 100644 --- a/pkgs/development/python-modules/w3lib/default.nix +++ b/pkgs/development/python-modules/w3lib/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , fetchPypi , pytestCheckHook +, pythonAtLeast , pythonOlder }: @@ -25,8 +26,10 @@ buildPythonPackage rec { "w3lib" ]; - disabledTests = [ - "test_add_or_replace_parameter" + disabledTests = lib.optionals (pythonAtLeast "3.11") [ + # regressed on Python 3.11.4 + # https://github.com/scrapy/w3lib/issues/212 + "test_safe_url_string_url" ]; meta = with lib; {