[py-svn] r36832 - in py/branch/rsession-cleanup/test/rsession: . webdata

fijal at codespeak.net fijal at codespeak.net
Tue Jan 16 18:26:56 CET 2007


Author: fijal
Date: Tue Jan 16 18:26:53 2007
New Revision: 36832

Modified:
   py/branch/rsession-cleanup/test/rsession/rsession.py
   py/branch/rsession-cleanup/test/rsession/webdata/source.js
Log:
Turn on experimental support for rescheduling tests.


Modified: py/branch/rsession-cleanup/test/rsession/rsession.py
==============================================================================
--- py/branch/rsession-cleanup/test/rsession/rsession.py	(original)
+++ py/branch/rsession-cleanup/test/rsession/rsession.py	Tue Jan 16 18:26:53 2007
@@ -234,13 +234,13 @@
         itemgenerator = itemgen(colitems, reporter, keyword, self.reporterror)
         
         all_tests = dispatch_loop(nodes, itemgenerator, checkfun)
-        #if all_tests:
-        #    todo = {}
-        #    for key, value in all_tests.items():
-        #        if key not in done_dict:
-        #            todo[key] = True
-        #    rg = randomgen(todo, done_dict)
-        #    dispatch_loop(nodes, rg, lambda:False, max_tasks_per_node=1)
+        if all_tests:
+            todo = {}
+            for key, value in all_tests.items():
+                if key not in done_dict:
+                    todo[key] = True
+            rg = randomgen(todo, done_dict)
+            dispatch_loop(nodes, rg, lambda:False, max_tasks_per_node=1)
 
 
 class LSession(AbstractSession):

Modified: py/branch/rsession-cleanup/test/rsession/webdata/source.js
==============================================================================
Binary files. No diff available.



More information about the pytest-commit mailing list