[Neo-report] r2619 olivier.cros - /trunk/neo/tests/functional/__init__.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jan 19 10:25:18 CET 2011
Author: olivier.cros
Date: Wed Jan 19 10:25:18 2011
New Revision: 2619
Log:
Conformity to chapter 27.5 on python doc - __name__ and execfile
In order to adapt our code to python standards and buildout functionment,
we had to precise the title '__main__' to launch scripts neotestrunner,
neoadmin, ....
Modified:
trunk/neo/tests/functional/__init__.py
Modified: trunk/neo/tests/functional/__init__.py
==============================================================================
--- trunk/neo/tests/functional/__init__.py [iso-8859-1] (original)
+++ trunk/neo/tests/functional/__init__.py [iso-8859-1] Wed Jan 19 10:25:18 2011
@@ -90,7 +90,7 @@ class NEOProcess(object):
# Child
try:
sys.argv = [command] + args
- execfile(command, {})
+ execfile(command, {"__name__": "__main__"})
except (SystemExit, KeyboardInterrupt):
self._exit()
except:
More information about the Neo-report
mailing list