Commit 66486399 authored by Vincent Pelletier's avatar Vincent Pelletier

Stop messing with setupLog in functional tests.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2370 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 27b2c0c2
......@@ -34,14 +34,6 @@ from neo.util import dump
from neo.tests import DB_ADMIN, DB_PASSWD
import neo
# Replace neo.setupLog by a no-op function.
# This will only impact instances created in this process, so client only.
def dummy_setupLog(*args, **kw):
pass
real_setupLog = neo.setupLog
neo.setupLog = dummy_setupLog
# Import Storage only *after* patching neo.setupLog, as it keeps a direct
# reference to setupLog.
from neo.client.Storage import Storage
NEO_MASTER = 'neomaster'
......@@ -184,7 +176,7 @@ class NEOCluster(object):
print 'Using temp directory %r.' % (temp_dir, )
self.temp_dir = temp_dir
# Setup client logger
real_setupLog(name='CLIENT', filename=os.path.join(self.temp_dir,
neo.setupLog(name='CLIENT', filename=os.path.join(self.temp_dir,
'client.log'), verbose=self.verbose)
admin_port = self.__allocatePort()
self.cluster_name = 'neo_%s' % (random.randint(0, 100), )
......
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