]> granicus.if.org Git - python/commitdiff
Remove setting hash seed to regrtest's random seed and re-execv()ing: this doesn...
authorGeorg Brandl <georg@python.org>
Mon, 20 Feb 2012 21:06:02 +0000 (22:06 +0100)
committerGeorg Brandl <georg@python.org>
Mon, 20 Feb 2012 21:06:02 +0000 (22:06 +0100)
Lib/test/regrtest.py

index d203600e295413c336bf735c9a7cec21937cbe1b..98d68bd1b483ba81f5061e24d4e4f7a23b58ade5 100755 (executable)
@@ -428,11 +428,6 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, generate=False,
         except ValueError:
             print("Couldn't find starting test (%s), using all tests" % start)
     if randomize:
-        hashseed = os.getenv('PYTHONHASHSEED')
-        if not hashseed:
-            os.environ['PYTHONHASHSEED'] = str(random_seed)
-            os.execv(sys.executable, [sys.executable] + sys.argv)
-            return
         random.seed(random_seed)
         print("Using random seed", random_seed)
         random.shuffle(tests)