[Neo-report] r2412 vincent - /trunk/neo/tests/functional/__init__.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Nov 4 16:28:25 CET 2010
Author: vincent
Date: Thu Nov 4 16:28:24 2010
New Revision: 2412
Log:
Actually swap trans & ttrans too.
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] Thu Nov 4 16:28:24 2010
@@ -262,9 +262,10 @@ class NEOCluster(object):
sql_connection = self.__getSuperSQLConnection()
cursor = sql_connection.cursor()
cursor.execute('use %s' % (database, ))
- cursor.execute('rename table obj to tmp')
- cursor.execute('rename table tobj to obj')
- cursor.execute('rename table tmp to tobj')
+ for table in ('trans', 'obj'):
+ cursor.execute('rename table %s to tmp' % (table, ))
+ cursor.execute('rename table t%s to %s' % (table, table))
+ cursor.execute('rename table tmp to t%s' % (table, ))
sql_connection.commit()
sql_connection.close()
More information about the Neo-report
mailing list