mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #19546 - ensure that deprecation warnings are shown during tests
refs #18985
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import warnings
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
class DummyTest(TestCase):
|
||||
def test_warn(self):
|
||||
warnings.warn("warning from test", DeprecationWarning)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user