[Python-checkins] cpython (3.1): Remove setting hash seed to regrtest's random seed and re-execv()ing: this

georg.brandl python-checkins at python.org
Mon Feb 20 23:52:18 CET 2012


http://hg.python.org/cpython/rev/0e68e31b75a0
changeset: 75091:0e68e31b75a0
branch: 3.1
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
@@ -428,11 +428,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(tests)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /