[Erp5-report] r14819 - /erp5/trunk/products/ERP5Type/tests/testPerformance.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jun 14 10:58:36 CEST 2007


Author: seb
Date: Thu Jun 14 10:58:36 2007
New Revision: 14819

URL: http://svn.erp5.org?rev=14819&view=rev
Log:
call the garbage collector less often than the default, because this makes decrease performance from time to time

Modified:
    erp5/trunk/products/ERP5Type/tests/testPerformance.py

Modified: erp5/trunk/products/ERP5Type/tests/testPerformance.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/testPerformance.py?rev=14819&r1=14818&r2=14819&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/testPerformance.py (original)
+++ erp5/trunk/products/ERP5Type/tests/testPerformance.py Thu Jun 14 10:58:36 2007
@@ -84,6 +84,11 @@
       """
       self.login()
       self.bar_module = self.getBarModule()
+      # Make the collection frequency higher,
+      # because if it is waiting too much time, then the collection
+      # take too much time and the test fails
+      import gc
+      gc.set_threshold(5000, 10, 10)
 
 
     def test_00_viewBarObject(self, quiet=quiet, run=run_all_test):




More information about the Erp5-report mailing list