mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Thanks to Preston Timmons for the bulk of the work on the patch, especially updating Django's own test suite to comply with the requirements of the new runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the patch and the discovery runner. Refs #11077, #17032, and #18670.
This commit is contained in:
parent
c0d8932a6d
commit
9012833af8
79 changed files with 959 additions and 1019 deletions
9
tests/test_runner_deprecation_app/tests.py
Normal file
9
tests/test_runner_deprecation_app/tests.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
import warnings
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
warnings.warn("module-level warning from deprecation_app", DeprecationWarning)
|
||||
|
||||
class DummyTest(TestCase):
|
||||
def test_warn(self):
|
||||
warnings.warn("warning from test", DeprecationWarning)
|
Loading…
Add table
Add a link
Reference in a new issue