Remove setting hash seed to regrtest's random seed and re-execv()ing: this doesn't preserve Python flags and fails from a temp directory.

This commit is contained in:
Georg Brandl 2012-02-20 22:06:02 +01:00
parent 27fe226eb1
commit 61470246d0
1 changed files with 0 additions and 5 deletions

View File

@ -496,11 +496,6 @@ def main(tests=None, testdir=None, verbose=0, quiet=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(selected)