 c3bc541a69
			
		
	
	c3bc541a69
	
	
	
		
			
			- Add test logging NullHandler - Remove default logging level filtering in testutil - Log render_template info - More fixture logging cleanups - wait_for() should not handle child shutdown
		
			
				
	
	
		
			18 lines
		
	
	
		
			437 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			437 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import sys
 | |
| 
 | |
| if sys.version_info < (2, 7):
 | |
|     import unittest2 as unittest  # pylint: disable=import-error
 | |
| else:
 | |
|     import unittest
 | |
| 
 | |
| # Set default logging handler to avoid "No handler found" warnings.
 | |
| import logging
 | |
| try:  # Python 2.7+
 | |
|     from logging import NullHandler
 | |
| except ImportError:
 | |
|     class NullHandler(logging.Handler):
 | |
|         def emit(self, record):
 | |
|             pass
 | |
| 
 | |
| logging.getLogger(__name__).addHandler(NullHandler())
 |