From: Georg Brandl Date: Mon, 20 Feb 2012 21:06:02 +0000 (+0100) Subject: Remove setting hash seed to regrtest's random seed and re-execv()ing: this doesn... X-Git-Tag: v3.2.3rc1~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61470246d086553fbd1de3c637ec17e9bb1ecb67;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 26ba9820d76d..135a90e7727a 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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)