diff --git a/neo/tests/functional/__init__.py b/neo/tests/functional/__init__.py index d7fc1a1b674f17e697b4fd8c3169012fc62646c7..8764b28483a5d3783f681ba0f695263b15b1b371 100644 --- a/neo/tests/functional/__init__.py +++ b/neo/tests/functional/__init__.py @@ -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()