[Python-checkins] cpython (3.2): Remove setting hash seed to regrtest's random seed and re-execv()ing: this
georg.brandl
python-checkins at python.org
Mon Feb 20 22:06:00 CET 2012
http://hg.python.org/cpython/rev/1cbb7d8ebab1
changeset: 75081:1cbb7d8ebab1
branch: 3.2
user: Georg Brandl <georg at python.org>
date: Mon Feb 20 22:06:02 2012 +0100
summary:
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.
files:
Lib/test/regrtest.py | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -496,11 +496,6 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list