Files
cpython/Lib/test
Victor Stinner fea98bfcff [2.7] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2444)
* bpo-30523: regrtest --list-cases --match (#2401)

* regrtest --list-cases now supports --match and --match-file options.
  Example: ./python -m test --list-cases -m FileTests test_os
* --list-cases now also sets support.verbose to False to prevent
  messages to stdout when loading test modules.
* Add support._match_test() private function.
(cherry picked from commit ace56d5836)

(cherry picked from commit 36946c06a3bdb1104c53f0fe535086572ffbdd9e)

* bpo-30764: regrtest: add --fail-env-changed option (#2402)

* bpo-30764: regrtest: change exit code on failure

* Exit code 2 if failed tests ("bad")
* Exit code 3 if interrupted

* bpo-30764: regrtest: add --fail-env-changed option

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 63f54c6893)
(cherry picked from commit 1f33857a3677de84bdc6d80c39f577eb081ed85d)

* bpo-30776: reduce regrtest -R false positives (#2422)

* Change the regrtest --huntrleaks checker to decide if a test file
  leaks or not. Require that each run leaks at least 1 reference.
* Warmup runs are now completely ignored: ignored in the checker test
  and not used anymore to compute the sum.
* Add an unit test for a reference leak.

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 48b5c422ff)

(cherry picked from commit e0f8b43a46850aa5e5992465cab684496f102fe5)
2017-06-27 16:56:43 +02:00
..
2014-12-07 14:19:15 -05:00
2015-02-16 01:49:22 +02:00
2012-02-20 21:47:54 -05:00
2016-10-05 22:09:31 -07:00
2011-03-27 21:01:03 +02:00
2014-02-16 14:51:17 -05:00
2013-12-10 14:14:28 -06:00
2013-01-18 00:44:49 -05:00
2016-12-01 23:58:38 -08:00
2016-12-18 05:27:49 +00:00
2014-11-07 14:07:43 +02:00
2012-10-15 22:29:02 -04:00
2014-02-16 14:48:26 -05:00