python311Packages.django-redis: Fix tests
by ignoring the DeprecationWarning for the cgi module removal in 3.13.
This commit is contained in:
parent
1f293528cc
commit
18bf35d603
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue