[2.7] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master by vstinner · Pull Request #2444 · python/cpython (original) (raw)

@vstinner

(cherry picked from commit 36946c0)

@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) (cherry picked from commit 1f33857)

@vstinner

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)

(cherry picked from commit e0f8b43)