Files
deb-python-kafka/test/__init__.py
Dana Powers c3bc541a69 More fixture logging improvements
- 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
2016-03-14 08:10:19 -07:00

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())