bpo-30764: regrtest: add --fail-env-changed option by vstinner · Pull Request #2402 · python/cpython (original) (raw)

vstinner added a commit that referenced this pull request

Jun 27, 2017

@vstinner

If the option is set, mark a test as failed if it alters the environment, for example if it creates a file without removing it.

(cherry picked from commit 63f54c6)

Example of reference differences previously considered a failure (leak) and now considered as success (success, no leak):

[3, 0, 0]
[0, 1, 0]
[8, -8, 1]

(cherry picked from commit 48b5c42)