Changes between Initial Version and Version 1 of Ticket #37072, comment 7


Ignore:
Timestamp:
May 1, 2026, 1:02:39 AM (2 weeks ago)
Author:
Artyom Kotovskiy

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37072, comment 7

    initial v1  
    2121
    2222
     23
     24{{{
    2325def test_so_this_should_also_error_but_does_not(self):
    2426        with self.assertWarnsMessage(RemovedInDjango70Warning, "Expected deprecation"):
    2527            warnings.warn("Expected deprecation", RemovedInDjango70Warning)
    2628            warnings.warn("Unrelated deprecation", RemovedInDjango70Warning)
     29}}}
     30
    2731
    2832RemovedInNextVersionWarning is a subclass of DeprecationWarning. So as I see it they both have same category, different message — but one should pass and one should fail.
Back to Top