mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +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.
		
			
				
	
	
		
			10 lines
		
	
	
		
			246 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			246 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 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)
 |