[Erp5-report] r30342 - /erp5/trunk/products/ERP5Type/tests/custom_zodb.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Nov 5 17:04:15 CET 2009
Author: leonardo
Date: Thu Nov 5 17:04:10 2009
New Revision: 30342
URL: http://svn.erp5.org?rev=30342&view=rev
Log:
cosmetic output tweak on test startup
Modified:
erp5/trunk/products/ERP5Type/tests/custom_zodb.py
Modified: erp5/trunk/products/ERP5Type/tests/custom_zodb.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/custom_zodb.py?rev=30342&r1=30341&r2=30342&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/custom_zodb.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/custom_zodb.py [utf8] Thu Nov 5 17:04:10 2009
@@ -15,12 +15,12 @@
if load:
dump_sql = os.path.join(instance_home, 'dump.sql')
if os.path.exists(dump_sql):
- print("Restoring MySQL database ... ")
+ print "Restoring MySQL database ... ",
ret = os.system("mysql %s < %s" % (getMySQLArguments(), dump_sql))
assert not ret
else:
os.environ['erp5_tests_recreate_catalog'] = '1'
- print("Restoring static files ... ")
+ print "Restoring static files ... ",
for dir in ('Constraint', 'Document', 'PropertySheet', 'Extensions'):
if os.path.exists(os.path.join(instance_home, '%s.bak' % dir)):
full_path = os.path.join(instance_home, dir)
@@ -28,7 +28,7 @@
shutil.copytree(os.path.join(instance_home, '%s.bak' % dir),
full_path, symlinks=True)
else:
- print("Cleaning static files at %s ... " % instance_home)
+ print "Cleaning static files at %s ... " % instance_home,
for dir in ('Constraint', 'Document', 'PropertySheet', 'Extensions'):
full_path = os.path.join(instance_home, dir)
if os.path.exists(full_path):
@@ -44,3 +44,4 @@
Storage = DemoStorage(base=FileStorage(data_fs_path))
else:
Storage = DemoStorage()
+
More information about the Erp5-report
mailing list