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: regrtest does not recognize -d flag
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.2, Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: eric.araujo, etukia, ezio.melotti, meador.inge, michael.foord, python-dev, terry.reedy
Priority: normal Keywords: patch

Created on 2012-01-07 11:51 by etukia, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
regrtest-debug.patch etukia, 2012-01-07 11:51 review
Messages (9)
msg150790 - (view) Author: Erno Tukia (etukia) Date: 2012-01-07 11:51
./python -m test --help
-d/--debug      -- print traceback for failed tests

./python -m test -d test_imaplib
option -d not recognized
Use --help for usage

Patch included.
msg151215 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-01-14 03:41
Thanks for the report and patch; I can’t easily push these days but if nobody gets to it today I will commit this.

BTW, are you finding these regrtest bugs while using it to run the CPython test suite or to run your tests?
msg151222 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2012-01-14 04:35
unittest.test.test_program.TestCommandLineArgs has a few test functions that do at least a minimal test of help and verbosity options and command line args. Should more be added for other options, like this and #13726?
msg151226 - (view) Author: Erno Tukia (etukia) Date: 2012-01-14 05:05
@Éric I just tried to fix, with tests, the imaplib bug (#13700) and I found this bug. And fixing this bug I happened to notice in the source code another bug (#13726). No problems with CPython test suite relating to these regrtest bugs.
msg151230 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-01-14 05:31
Erno: Okay, I just wanted to make sure you weren’t using it for your own projects, as regrtest is not an official public module.  Thanks for your patches!
msg151255 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-01-14 15:19
New changeset f80f9eb5df02 by Meador Inge in branch '3.2':
Issue #13725: regrtest does not recognize -d flag.
http://hg.python.org/cpython/rev/f80f9eb5df02

New changeset f2b764dd0851 by Meador Inge in branch 'default':
Issue #13725: regrtest does not recognize -d flag.
http://hg.python.org/cpython/rev/f2b764dd0851
msg151256 - (view) Author: Meador Inge (meador.inge) * (Python committer) Date: 2012-01-14 15:21
Éric, I got it.

Erno, thanks for the patch.
msg151257 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-01-14 15:57
New changeset 3e9b107fb5da by Meador Inge in branch '3.2':
Issue #13725: Add a NEWS entry.
http://hg.python.org/cpython/rev/3e9b107fb5da

New changeset 7332e97587da by Meador Inge in branch 'default':
Issue #13725: Add a NEWS entry.
http://hg.python.org/cpython/rev/7332e97587da
msg151263 - (view) Author: Erno Tukia (etukia) Date: 2012-01-14 18:11
Meador, thanks for the acknowledgement.
History
Date User Action Args
2022-04-11 14:57:25adminsetgithub: 57934
2012-01-14 18:11:00etukiasetmessages: + msg151263
2012-01-14 15:57:36python-devsetmessages: + msg151257
2012-01-14 15:21:32meador.ingesetstatus: open -> closed

nosy: + meador.inge
messages: + msg151256

resolution: fixed
stage: resolved
2012-01-14 15:19:48python-devsetnosy: + python-dev
messages: + msg151255
2012-01-14 05:31:39eric.araujosetmessages: + msg151230
2012-01-14 05:05:04etukiasetmessages: + msg151226
2012-01-14 04:35:10terry.reedysetnosy: + terry.reedy, ezio.melotti, michael.foord
messages: + msg151222
2012-01-14 03:41:41eric.araujosetnosy: + eric.araujo
messages: + msg151215
2012-01-07 11:51:48etukiacreate