Skip to content

Test failures when CPython is built without docstrings #81682

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

Closed
ZackerySpytz mannequin opened this issue Jul 5, 2019 · 4 comments
Closed

Test failures when CPython is built without docstrings #81682

ZackerySpytz mannequin opened this issue Jul 5, 2019 · 4 comments
Labels
3.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@ZackerySpytz
Copy link
Mannequin

ZackerySpytz mannequin commented Jul 5, 2019

BPO 37501
Nosy @brettcannon, @terryjreedy, @ericvsmith, @ZackerySpytz
PRs
  • bpo-37501: Fix test failures when CPython is built without docstrings #14592
  • Files
  • test_failures_without_docstrings.txt
  • 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 = None
    created_at = <Date 2019-07-05.03:30:04.113>
    labels = ['3.7', '3.8', 'type-bug', 'tests', '3.9']
    title = 'Test failures when CPython is built without docstrings'
    updated_at = <Date 2019-07-09.07:46:22.932>
    user = 'https://github.com/ZackerySpytz'

    bugs.python.org fields:

    activity = <Date 2019-07-09.07:46:22.932>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Tests']
    creation = <Date 2019-07-05.03:30:04.113>
    creator = 'ZackerySpytz'
    dependencies = []
    files = ['48456']
    hgrepos = []
    issue_num = 37501
    keywords = ['patch']
    message_count = 4.0
    messages = ['347298', '347361', '347363', '347527']
    nosy_count = 4.0
    nosy_names = ['brett.cannon', 'terry.reedy', 'eric.smith', 'ZackerySpytz']
    pr_nums = ['14592']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue37501'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Linked PRs

    @ZackerySpytz
    Copy link
    Mannequin Author

    ZackerySpytz mannequin commented Jul 5, 2019

    test_coroutines, test_dataclasses, test_idle, test_importlib, test_module, and test_pydoc fail when CPython is built without docstrings.

    It seems that most of the failures occur simply because the test.support.requires_docstrings decorator is missing for some tests.

    See also bpo-17041.

    @ZackerySpytz ZackerySpytz mannequin added 3.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Jul 5, 2019
    @brettcannon
    Copy link
    Member

    Bit surprised by the test_importlib failure. What has crept into there that requires docstrings?

    @ericvsmith
    Copy link
    Member

    Also surprised by the marked dataclasses tests. I don't see anything there that requires docstrings. See my review on the PR.

    @terryjreedy
    Copy link
    Member

    Compiling without docstrings only affects compiled functions. (Is this option unix only, for servers?) This caused failures in 6 /test test functions. Running with -00 only affects python functions. It causes failure in 19 test function on Windows. For IDLE, it causes many more failures than the configuration change.

    __doc__ == '' might have been less of a nuisance than == None, but too late to change that glocally now, although it can be a local solution.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Dec 22, 2023
    serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Dec 23, 2023
    …t docstrings (pythonGH-113410)
    
    (cherry picked from commit 4e5b27e)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Dec 23, 2023
    …t docstrings (pythonGH-113410)
    
    (cherry picked from commit 4e5b27e)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    serhiy-storchaka added a commit that referenced this issue Dec 23, 2023
    serhiy-storchaka added a commit that referenced this issue Dec 23, 2023
    ryan-duve pushed a commit to ryan-duve/cpython that referenced this issue Dec 26, 2023
    kulikjak pushed a commit to kulikjak/cpython that referenced this issue Jan 22, 2024
    aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
    Glyphack pushed a commit to Glyphack/cpython that referenced this issue Sep 2, 2024
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    4 participants