Commit 05d368a8 authored by Jérome Perrin's avatar Jérome Perrin

even if this file has been imported, framework.py must believe it has been

invoked from __main__, because ztc_common.py will only use custom_zodb if
it's called from __main__


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26004 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1e8fde68
...@@ -239,7 +239,8 @@ def runUnitTestList(test_list, verbosity=1, debug=0): ...@@ -239,7 +239,8 @@ def runUnitTestList(test_list, verbosity=1, debug=0):
os.environ.setdefault('EVENT_LOG_FILE', os.path.join(tests_home, 'zLOG.log')) os.environ.setdefault('EVENT_LOG_FILE', os.path.join(tests_home, 'zLOG.log'))
os.environ.setdefault('EVENT_LOG_SEVERITY', '-300') os.environ.setdefault('EVENT_LOG_SEVERITY', '-300')
execfile(os.path.join(tests_framework_home, 'framework.py')) execfile(os.path.join(tests_framework_home, 'framework.py'),
dict(__name__='__main__'))
if WIN: if WIN:
products_home = os.path.join(real_instance_home, 'Products') products_home = os.path.join(real_instance_home, 'Products')
......
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