Project

General

Profile

Bug #70846

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

Added by Frédéric Péters 5 months ago. Updated 5 months ago.

Status:
Fermé
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
29 October 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

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.

Related issues

Is duplicate of Authentic 2 - Bug #70861: tox : cible stable-backports casséeFermé31 October 2022

Actions

History

#1

Updated by Benjamin Dauvergne 5 months ago

  • Is duplicate of Bug #70861: tox : cible stable-backports cassée added
#2

Updated by Benjamin Dauvergne 5 months ago

  • Status changed from Nouveau to Fermé

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

Also available in: Atom PDF