Revision: 8376d78df917
Branch:   default
Author:   Pekka Klärck
Date:     Thu Apr 24 18:37:16 2014 UTC
Log:      Workaround for IronPython bug with random.Random(None).
http://code.google.com/p/robotframework/source/detail?r=8376d78df917

Modified:
 /src/robot/running/randomizer.py

=======================================
--- /src/robot/running/randomizer.py    Wed Apr 23 15:25:04 2014 UTC
+++ /src/robot/running/randomizer.py    Thu Apr 24 18:37:16 2014 UTC
@@ -23,7 +23,10 @@
         self.randomize_suites = randomize_suites
         self.randomize_tests = randomize_tests
         self.seed = seed
-        self._shuffle = Random(seed).shuffle
+        # Cannot use just Random(seed) due to
+        # https://ironpython.codeplex.com/workitem/35155
+        args = (seed,) if seed is not None else ()
+        self._shuffle = Random(*args).shuffle

     def start_suite(self, suite):
         if not self.randomize_suites and not self.randomize_tests:

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to