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

document the defaultTest parameter to unittest.main() #61484

Closed
cjerdonek opened this issue Feb 24, 2013 · 4 comments
Closed

document the defaultTest parameter to unittest.main() #61484

cjerdonek opened this issue Feb 24, 2013 · 4 comments
Labels
docs Documentation in the Doc dir easy type-feature A feature request or enhancement

Comments

@cjerdonek
Copy link
Member

BPO 17282
Nosy @ezio-melotti, @bitdancer, @voidspace, @cjerdonek
Files
  • default_test_3.4.patch
  • default_test_2.7-3.3.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 2014-01-02.18:46:34.674>
    created_at = <Date 2013-02-24.00:14:54.708>
    labels = ['easy', 'type-feature', 'docs']
    title = 'document the defaultTest parameter to unittest.main()'
    updated_at = <Date 2014-01-02.18:46:34.672>
    user = 'https://github.com/cjerdonek'

    bugs.python.org fields:

    activity = <Date 2014-01-02.18:46:34.672>
    actor = 'r.david.murray'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2014-01-02.18:46:34.674>
    closer = 'r.david.murray'
    components = ['Documentation']
    creation = <Date 2013-02-24.00:14:54.708>
    creator = 'chris.jerdonek'
    dependencies = []
    files = ['30096', '30097']
    hgrepos = []
    issue_num = 17282
    keywords = ['patch', 'easy']
    message_count = 4.0
    messages = ['182839', '188230', '207180', '207182']
    nosy_count = 7.0
    nosy_names = ['ezio.melotti', 'r.david.murray', 'michael.foord', 'chris.jerdonek', 'docs@python', 'python-dev', 'kyle.roberts']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue17282'
    versions = ['Python 2.7', 'Python 3.3', 'Python 3.4']

    @cjerdonek
    Copy link
    Member Author

    This issue is to document the defaultTest parameter to unittest.main():

    http://docs.python.org/dev/library/unittest.html#unittest.main

    Note that it is not enough simply to say that *defaultTest* is a "default test name or iterable of test names." The documentation should also say when *defaultTest* is used based on the value of the *module* and *argv* arguments, etc.

    This issue is an offshoot of bpo-15132.

    @cjerdonek cjerdonek added docs Documentation in the Doc dir easy type-feature A feature request or enhancement labels Feb 24, 2013
    @kyleroberts
    Copy link
    Mannequin

    kyleroberts mannequin commented May 1, 2013

    I've uploaded a patch documenting defaultTest in the latest branch and also in the previous branches.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jan 2, 2014

    New changeset 045e7a587f3c by R David Murray in branch '3.3':
    bpo-17282: Document unittest.main defaultTest argument.
    http://hg.python.org/cpython/rev/045e7a587f3c

    New changeset 69b5f6924553 by R David Murray in branch '2.7':
    bpo-17282: Document unittest.main defaultTest argument.
    http://hg.python.org/cpython/rev/69b5f6924553

    New changeset 1bbf8c263d3c by R David Murray in branch 'default':
    Merge and update bpo-17282: Document unittest.main defaultTest argument.
    http://hg.python.org/cpython/rev/1bbf8c263d3c

    @bitdancer
    Copy link
    Member

    Thanks Kyle. I reworded it a bit to clarify the precedence of argv over defaultTest. (Also FYI your patch had stray spaces at the ends of the lines.)

    @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
    docs Documentation in the Doc dir easy type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants