[Erp5-report] r35630 jm - /erp5/trunk/products/ERP5/tests/testInvalidationBug.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed May 26 10:32:16 CEST 2010
Author: jm
Date: Wed May 26 10:32:14 2010
New Revision: 35630
URL: http://svn.erp5.org?rev=35630&view=rev
Log:
Use appropriate SQL connection to check resources in testCommitOrder
Previous code was not working if connection strings were different for catalog
and activity.
Modified:
erp5/trunk/products/ERP5/tests/testInvalidationBug.py
Modified: erp5/trunk/products/ERP5/tests/testInvalidationBug.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testInvalidationBug.py?rev=35630&r1=35629&r2=35630&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testInvalidationBug.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testInvalidationBug.py [utf8] Wed May 26 10:32:14 2010
@@ -64,7 +64,8 @@
connection = connection.__class__('_' + connection_id, '',
'-' + connection.connection_string)
query = "rollback\0select * from %s where path='%s'" % (table, path)
- test_list.append(lambda query=query: len(connection.manage_test(query)))
+ test_list.append(lambda manage_test=connection.manage_test, query=query:
+ len(manage_test(query)))
result_list = [map(apply, test_list)]
Transaction_commitResources = transaction.Transaction._commitResources
def _commitResources(self):
More information about the Erp5-report
mailing list