Great. There's some more information on warnings in the docs here:
https://docs.djangoproject.com/en/4.0/howto/upgrade-version/#resolving-deprecation-warnings
.

‪On Thu, May 19, 2022 at 9:38 PM ‫אורי‬‎ <u...@speedy.net> wrote:‬

> Hi Adam,
>
> I understand, and with `python -W all` I can see this warning (it was with
> `python -W error::DeprecationWarning` that I didn't see the warning).
>
> Thanks,
> Uri.
> אורי
> u...@speedy.net
>
>
> On Thu, May 19, 2022 at 10:52 PM 'Adam Johnson' via Django developers
> (Contributions to Django itself) <django-developers@googlegroups.com>
> wrote:
>
>> Hi Uri,
>>
>> The view raises a RemovedInDjango50Warning, which on Django 4.1 inherits
>> from PendingDeprecationWarning:
>> https://github.com/django/django/blob/ac6410ec071f53893914c82e820a2320866681df/django/utils/deprecation.py#L12
>>
>> You'll need to run with "python -W all" or similar to see it (consider 
>> development
>> mode <https://docs.python.org/3.10/library/devmode.html>). Python's
>> default warning filters will only show DeprecationWarning, which is "the
>> next level up", and what Django 4.2 will use for RemovedInDjango50Warning.
>>
>> ‪On Thu, May 19, 2022 at 8:28 PM ‫אורי‬‎ <u...@speedy.net> wrote:‬
>>
>>> Hi,
>>>
>>> I installed Django 4.1 alpha and ran the tests with deprecation warnings
>>> enabled, but I didn't get any deprecation warnings for logging out with
>>> get. I have this test:
>>>
>>>             def test_user_can_logout(self):
>>>                 r = self.client.get(path='/logout/')
>>>                 self.assertEqual(first=r.status_code, second=200)
>>>                 r = self.client.get(path='/')
>>>                 self.assertIs(expr1=r.context['user'].is_authenticated,
>>> expr2=False)
>>>
>>> And I ran it with the command
>>> `./tests_manage_all_sites_with_deprecation_warnings.sh test
>>> speedy.core.accounts.tests.test_views.LogoutViewTestCase`, and the test is
>>> passing without any deprecation warnings. Is it a problem with Django 4.1
>>> or in the way I ran the test?
>>>
>>> Do you want me to file a new ticket?
>>>
>>> Thanks,
>>> Uri.
>>> אורי
>>> u...@speedy.net
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django developers (Contributions to Django itself)" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-developers+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-developers/CABD5YeFEdxPt3Yxbv3Ws3EFxmnswmXb9qhsLk1NH-%2BaLucwyxQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-developers/CABD5YeFEdxPt3Yxbv3Ws3EFxmnswmXb9qhsLk1NH-%2BaLucwyxQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-developers+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-developers/CAMyDDM3m9pHb23%2BJN9Efc%2BvN%3DMDz8Penk0FOM_xBLECOR833bw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-developers/CAMyDDM3m9pHb23%2BJN9Efc%2BvN%3DMDz8Penk0FOM_xBLECOR833bw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/CABD5YeG4Z7nKs%2BxGRWGdFbxNGAi9tsm2W53fxt%2B4MuKyiOfdgw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-developers/CABD5YeG4Z7nKs%2BxGRWGdFbxNGAi9tsm2W53fxt%2B4MuKyiOfdgw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM3yR1793qkBWTbNpVh%3D1L6OKwq0gPKOFuwHsQYqxKRj2A%40mail.gmail.com.
  • Fea... אורי
    • ... 'Adam Johnson' via Django developers (Contributions to Django itself)
      • ... אורי
        • ... 'Adam Johnson' via Django developers (Contributions to Django itself)
      • ... אורי

Reply via email to