Commit ab6e1806 authored by Julien Muchembled's avatar Julien Muchembled

tests: enable packet logger only when a NEO test is run

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2730 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b265df3e
......@@ -48,7 +48,6 @@ debug.ENABLED = True
debug.register()
# prevent "signal only works in main thread" errors in subprocesses
debug.ENABLED = False
logger.PACKET_LOGGER.enable(True)
def mockDefaultValue(name, function):
def method(self, *args, **kw):
......@@ -90,6 +89,7 @@ def getTempDirectory():
class NeoTestBase(unittest.TestCase):
def setUp(self):
logger.PACKET_LOGGER.enable(True)
sys.stdout.write(' * %s ' % (self.id(), ))
sys.stdout.flush()
unittest.TestCase.setUp(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment