This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add options --match and --failfast for test.regrtest in 2.7
Type: enhancement Stage: resolved
Components: Tests Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ezio.melotti, ncoghlan, serhiy.storchaka, vstinner, xiang.zhang
Priority: normal Keywords:

Created on 2017-05-02 17:19 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 1394 merged serhiy.storchaka, 2017-05-02 17:26
Messages (2)
msg292790 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-05-02 17:19
Proposed patch adds options -m/--match and -G/--failfast for test.regrtest in 2.7. They are two the most wanted by me features absent in 2.7.

I use them when add new test in long running test file. Often this needs running the test multiple times, incrementally changing the test or code until the test cover all cases and successful. Waiting running other tests in the same file is just waste of time.

Other cases -- fast running tests related to some feature in different files. For example -m '*ickl*' allows to run all pickle-related tests.

The code is backported from 3.3. This is the last version using getopt and the most compatible with 2.7. There was several major rewriting of regrtest in following versions.
msg292941 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-05-03 21:23
New changeset 74f0db885fa84e3a1c73b3ae1edc723d48f7bad2 by Serhiy Storchaka in branch '2.7':
[2.7] bpo-30236: Backported regrtest options -m and -G. (#1394)
https://github.com/python/cpython/commit/74f0db885fa84e3a1c73b3ae1edc723d48f7bad2
History
Date User Action Args
2022-04-11 14:58:45adminsetgithub: 74422
2017-05-03 21:24:25serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-05-03 21:23:52serhiy.storchakasetmessages: + msg292941
2017-05-02 17:26:47serhiy.storchakasetpull_requests: + pull_request1502
2017-05-02 17:19:43serhiy.storchakacreate