[Neo-report] r2730 jm - /trunk/neo/tests/__init__.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Apr 27 17:14:38 CEST 2011
Author: jm
Date: Wed Apr 27 17:14:38 2011
New Revision: 2730
Log:
tests: enable packet logger only when a NEO test is run
Modified:
trunk/neo/tests/__init__.py
Modified: trunk/neo/tests/__init__.py
==============================================================================
--- trunk/neo/tests/__init__.py [iso-8859-1] (original)
+++ trunk/neo/tests/__init__.py [iso-8859-1] Wed Apr 27 17:14:38 2011
@@ -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)
More information about the Neo-report
mailing list