Changes between Initial Version and Version 1 of Ticket #37072, comment 7
- Timestamp:
- May 1, 2026, 1:02:39 AM (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37072, comment 7
initial v1 21 21 22 22 23 24 {{{ 23 25 def test_so_this_should_also_error_but_does_not(self): 24 26 with self.assertWarnsMessage(RemovedInDjango70Warning, "Expected deprecation"): 25 27 warnings.warn("Expected deprecation", RemovedInDjango70Warning) 26 28 warnings.warn("Unrelated deprecation", RemovedInDjango70Warning) 29 }}} 30 27 31 28 32 RemovedInNextVersionWarning 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.