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

doctest does not consider \r\n a <BLANKLINE> #76278

Open
bertjwregeer mannequin opened this issue Nov 20, 2017 · 2 comments
Open

doctest does not consider \r\n a <BLANKLINE> #76278

bertjwregeer mannequin opened this issue Nov 20, 2017 · 2 comments
Labels
3.7 (EOL) end of life stdlib Python modules in the Lib dir

Comments

@bertjwregeer
Copy link
Mannequin

bertjwregeer mannequin commented Nov 20, 2017

BPO 32097
Nosy @bertjwregeer, @serhiy-storchaka
Files
  • test.py
  • 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 2017-11-20.22:58:10.763>
    labels = ['3.7', 'library']
    title = 'doctest does not consider \\r\\n a <BLANKLINE>'
    updated_at = <Date 2017-11-24.19:33:14.257>
    user = 'https://github.com/bertjwregeer'

    bugs.python.org fields:

    activity = <Date 2017-11-24.19:33:14.257>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2017-11-20.22:58:10.763>
    creator = 'X-Istence'
    dependencies = []
    files = ['47280']
    hgrepos = []
    issue_num = 32097
    keywords = []
    message_count = 2.0
    messages = ['306595', '306633']
    nosy_count = 2.0
    nosy_names = ['X-Istence', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue32097'
    versions = ['Python 2.7', 'Python 3.6', 'Python 3.7']

    @bertjwregeer
    Copy link
    Mannequin Author

    bertjwregeer mannequin commented Nov 20, 2017

    doctest fails to consider \r\n as a blank line.

    @bertjwregeer bertjwregeer mannequin added 3.8 only security fixes 3.7 (EOL) end of life stdlib Python modules in the Lib dir labels Nov 20, 2017
    @serhiy-storchaka
    Copy link
    Member

    It considers \r\n as a blank line. It just doesn't consider \r\n as \n in a non-blank line.

    If add \r after some text the test will pass. Or use NORMALIZE_WHITESPACE.

    @terryjreedy terryjreedy removed the 3.8 only security fixes label Nov 24, 2017
    @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
    3.7 (EOL) end of life stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants