Projet

Général

Profil

Bug #70846

environnement py3-stable-backports en erreur suite à #70631

Ajouté par Frédéric Péters il y a plus d'un an. Mis à jour il y a plus d'un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
29 octobre 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

(il me semble)

#70631 introduit ça dans le tox.ini,

+  error:.*Passing None for the middleware get_response argument is deprecated.*::

et dans le build intégral de cette nuit, ça échoue :

[gw3] linux -- Python 3.9.2 /tmp/authentic-3116/tox-jenkins/authentic/py3-stable-backports/bin/python

rf = <django.test.client.RequestFactory object at 0x7fe9e0d15f40>
simple_user = <User: user (21e098)>

    def test_get_authentication_events_hows(rf, simple_user):
        user = authenticate(username=simple_user.username, password=simple_user.username)
        request = rf.get('/login/')
>       middleware = SessionMiddleware()

tests/test_utils.py:97: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/authentic-3116/tox-jenkins/authentic/py3-stable-backports/lib/python3.9/site-packages/django/contrib/sessions/middleware.py:16: in __init__
    super().__init__(get_response)
/tmp/authentic-3116/tox-jenkins/authentic/py3-stable-backports/lib/python3.9/site-packages/django/utils/deprecation.py:95: in __init__
    self._get_response_none_deprecation(get_response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <django.contrib.sessions.middleware.SessionMiddleware object at 0x7fea0a21e9d0>
get_response = None

    def _get_response_none_deprecation(self, get_response):
        if get_response is None:
>           warnings.warn(
                'Passing None for the middleware get_response argument is '
                'deprecated.',
                RemovedInDjango40Warning, stacklevel=3,
            )
E           django.utils.deprecation.RemovedInDjango40Warning: Passing None for the middleware get_response argument is deprecated.

Demandes liées

Duplique Authentic 2 - Bug #70861: tox : cible stable-backports casséeFermé31 octobre 2022

Actions

Historique

#1

Mis à jour par Benjamin Dauvergne il y a plus d'un an

  • Duplique Bug #70861: tox : cible stable-backports cassée ajouté
#2

Mis à jour par Benjamin Dauvergne il y a plus d'un an

  • Statut changé de Nouveau à Fermé

Paul a commencé à bosser sur #70846 alors je ferme celui-ci.

Formats disponibles : Atom PDF