Unverified Commit 18bf35d6 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python311Packages.django-redis: Fix tests

by ignoring the DeprecationWarning for the cgi module removal in 3.13.
parent 1f293528
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
{ 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"