1
0
mirror of https://github.com/django/django.git synced 2025-10-30 17:16:10 +00:00

[1.5.x] Fixed #19546 - ensure that deprecation warnings are shown during tests

refs #18985
This commit is contained in:
Preston Holmes
2013-01-02 16:00:39 -08:00
parent 7c39e041b1
commit af8e858c15
6 changed files with 59 additions and 8 deletions

View File

@@ -0,0 +1,9 @@
import warnings
from django.test import TestCase
class DummyTest(TestCase):
def test_warn(self):
warnings.warn("warning from test", DeprecationWarning)