bpo-31227: regrtest reseeds RNG before each test by vstinner · Pull Request #3059 · python/cpython

Conversation

@vstinner

regrtest now reseeds the random RNG before each test file.

Use also more entropy for the seed: 2**32 (32 bits) rather than
10_000_000 (24 bits).

https://bugs.python.org/issue31227

regrtest now reseeds the random RNG before each test file.

Use also more entropy for the seed: 2**32 (32 bits) rather than
10_000_000 (24 bits).

@vstinner vstinner changed the title bpo-31174: regrtest reseeds RNG before each test bpo-31227: regrtest reseeds RNG before each test

Aug 17, 2017

@vstinner

I added a test to make sure that the behaviour is the same when tests are run in parallel.

@vstinner

I didn't get a strong +1 on the issue and I'm not convinced myself by my approach. Moreover, Refleaks buildbots now seem to be reliable thanks to other fixes. For all these reasons, I close the PR.

2 participants

@vstinner @the-knights-who-say-ni