提交 7b5ccff5 编写于 作者: M Marbin Tan

Removing built-in logger from gp_unittest

This was causing issues on make check where the logger gets inherited
by other unittests and causes unexpected log outputs.

Authors: Marbin Tan & Stephen Wu
上级 de6e9c52
import logging
import sys
import unittest2 as unittest
class GpTestCase(unittest.TestCase):
def __init__(self, methodName='runTest'):
super(GpTestCase, self).__init__(methodName)
logging.basicConfig(stream=sys.stderr)
self.logger = logging.getLogger()
self.logger.setLevel(logging.DEBUG)
self.patches = []
def apply_patches(self, patches):
......@@ -26,4 +21,4 @@ class GpTestCase(unittest.TestCase):
def run_tests():
unittest.main(verbosity=2, buffer=True)
skip = unittest.skip
\ No newline at end of file
skip = unittest.skip
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册