[Neo-report] r2396 vincent - /trunk/neo/tests/zodb/__init__.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Nov 1 11:59:50 CET 2010


Author: vincent
Date: Mon Nov  1 11:59:49 2010
New Revision: 2396

Log:
Deconfigure logger in tearDown.

This prevents lines from next setUp from showing up in test's log.
This is not so nice to have to call it here, but it is probably an
artificial-enough use case to justify this.

Modified:
    trunk/neo/tests/zodb/__init__.py

Modified: trunk/neo/tests/zodb/__init__.py
==============================================================================
--- trunk/neo/tests/zodb/__init__.py [iso-8859-1] (original)
+++ trunk/neo/tests/zodb/__init__.py [iso-8859-1] Mon Nov  1 11:59:49 2010
@@ -18,6 +18,7 @@
 import unittest
 
 from neo.tests.functional import NEOCluster, NEOFunctionalTest
+import neo
 
 class ZODBTestCase(NEOFunctionalTest):
 
@@ -31,6 +32,8 @@ class ZODBTestCase(NEOFunctionalTest):
     def tearDown(self):
         self._storage.cleanup()
         self.neo.stop()
+        # Deconfigure client logger
+        neo.setupLog('CLIENT')
         NEOFunctionalTest.tearDown(self)
 
     def open(self, read_only=False):





More information about the Neo-report mailing list