summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-02-20 21:06:02 (GMT)
committerGeorg Brandl <georg@python.org>2012-02-20 21:06:02 (GMT)
commit61470246d086553fbd1de3c637ec17e9bb1ecb67 (patch)
tree9b3c300389e1b9c4550a6fd215bf3ccc96421a30 /Lib/test/regrtest.py
parent27fe226eb13b1f7cedba838b3d388a645197d722 (diff)
downloadcpython-61470246d086553fbd1de3c637ec17e9bb1ecb67.zip
cpython-61470246d086553fbd1de3c637ec17e9bb1ecb67.tar.gz
cpython-61470246d086553fbd1de3c637ec17e9bb1ecb67.tar.bz2
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.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 26ba982..135a90e 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)