Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regrtest does not recognize -d flag #57934

Closed
etukia mannequin opened this issue Jan 7, 2012 · 9 comments
Closed

regrtest does not recognize -d flag #57934

etukia mannequin opened this issue Jan 7, 2012 · 9 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@etukia
Copy link
Mannequin

etukia mannequin commented Jan 7, 2012

BPO 13725
Nosy @terryjreedy, @ezio-melotti, @merwok, @voidspace, @meadori
Files
  • regrtest-debug.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2012-01-14.15:21:32.756>
    created_at = <Date 2012-01-07.11:51:48.211>
    labels = ['type-bug', 'tests']
    title = 'regrtest does not recognize -d flag'
    updated_at = <Date 2012-01-14.18:11:00.809>
    user = 'https://bugs.python.org/etukia'

    bugs.python.org fields:

    activity = <Date 2012-01-14.18:11:00.809>
    actor = 'etukia'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-01-14.15:21:32.756>
    closer = 'meador.inge'
    components = ['Tests']
    creation = <Date 2012-01-07.11:51:48.211>
    creator = 'etukia'
    dependencies = []
    files = ['24159']
    hgrepos = []
    issue_num = 13725
    keywords = ['patch']
    message_count = 9.0
    messages = ['150790', '151215', '151222', '151226', '151230', '151255', '151256', '151257', '151263']
    nosy_count = 7.0
    nosy_names = ['terry.reedy', 'ezio.melotti', 'eric.araujo', 'michael.foord', 'meador.inge', 'python-dev', 'etukia']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue13725'
    versions = ['Python 3.2', 'Python 3.3']

    @etukia
    Copy link
    Mannequin Author

    etukia mannequin commented Jan 7, 2012

    ./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.

    @etukia etukia mannequin added tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Jan 7, 2012
    @merwok
    Copy link
    Member

    merwok commented Jan 14, 2012

    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?

    @terryjreedy
    Copy link
    Member

    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 bpo-13726?

    @etukia
    Copy link
    Mannequin Author

    etukia mannequin commented Jan 14, 2012

    @Éric I just tried to fix, with tests, the imaplib bug (bpo-13700) and I found this bug. And fixing this bug I happened to notice in the source code another bug (bpo-13726). No problems with CPython test suite relating to these regrtest bugs.

    @merwok
    Copy link
    Member

    merwok commented Jan 14, 2012

    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!

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jan 14, 2012

    New changeset f80f9eb5df02 by Meador Inge in branch '3.2':
    Issue bpo-13725: regrtest does not recognize -d flag.
    http://hg.python.org/cpython/rev/f80f9eb5df02

    New changeset f2b764dd0851 by Meador Inge in branch 'default':
    Issue bpo-13725: regrtest does not recognize -d flag.
    http://hg.python.org/cpython/rev/f2b764dd0851

    @meadori
    Copy link
    Member

    meadori commented Jan 14, 2012

    Éric, I got it.

    Erno, thanks for the patch.

    @meadori meadori closed this as completed Jan 14, 2012
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jan 14, 2012

    New changeset 3e9b107fb5da by Meador Inge in branch '3.2':
    Issue bpo-13725: Add a NEWS entry.
    http://hg.python.org/cpython/rev/3e9b107fb5da

    New changeset 7332e97587da by Meador Inge in branch 'default':
    Issue bpo-13725: Add a NEWS entry.
    http://hg.python.org/cpython/rev/7332e97587da

    @etukia
    Copy link
    Mannequin Author

    etukia mannequin commented Jan 14, 2012

    Meador, thanks for the acknowledgement.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants