python311Packages.django-redis: Fix tests

by ignoring the DeprecationWarning for the cgi module removal in 3.13.
This commit is contained in:
Martin Weinelt 2023-03-24 20:00:14 +00:00
parent 1f293528cc
commit 18bf35d603
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,5 +1,6 @@
{ lib
, fetchFromGitHub
, pythonAtLeast
, pythonOlder
, buildPythonPackage
@ -66,6 +67,11 @@ buildPythonPackage {
pytestCheckHook
];
pytestFlagsArray = lib.optionals (pythonAtLeast "3.11") [
# DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
"-W" "ignore::DeprecationWarning"
];
disabledTests = [
# ModuleNotFoundError: No module named 'test_cache_options'
"test_custom_key_function"