python311Packages.w3lib: disable regressed test (#238004)

Co-authored-by: Mario Rodas <marsam@users.noreply.github.com>

Changed files
+5 -2
pkgs
development
python-modules
w3lib
+5 -2
pkgs/development/python-modules/w3lib/default.nix
···
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
···
"w3lib"
];
-
disabledTests = [
-
"test_add_or_replace_parameter"
];
meta = with lib; {
···
, buildPythonPackage
, fetchPypi
, pytestCheckHook
+
, pythonAtLeast
, pythonOlder
}:
···
"w3lib"
];
+
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; {