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

test_typing fails if asyncio unavailable #72668

Closed
vadmium opened this issue Oct 20, 2016 · 8 comments
Closed

test_typing fails if asyncio unavailable #72668

vadmium opened this issue Oct 20, 2016 · 8 comments
Labels
3.7 (EOL) end of life tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@vadmium
Copy link
Member

vadmium commented Oct 20, 2016

BPO 28482
Nosy @gvanrossum, @vadmium, @ilevkivskyi
Files
  • st-typing.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 2016-10-21.23:20:19.267>
    created_at = <Date 2016-10-20.04:23:14.940>
    labels = ['3.7', 'type-bug', 'tests']
    title = 'test_typing fails if asyncio unavailable'
    updated_at = <Date 2016-10-22.00:23:06.544>
    user = 'https://github.com/vadmium'

    bugs.python.org fields:

    activity = <Date 2016-10-22.00:23:06.544>
    actor = 'martin.panter'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-10-21.23:20:19.267>
    closer = 'gvanrossum'
    components = ['Tests']
    creation = <Date 2016-10-20.04:23:14.940>
    creator = 'martin.panter'
    dependencies = []
    files = ['45147']
    hgrepos = []
    issue_num = 28482
    keywords = ['patch']
    message_count = 8.0
    messages = ['279013', '279035', '279160', '279164', '279166', '279169', '279170', '279173']
    nosy_count = 4.0
    nosy_names = ['gvanrossum', 'python-dev', 'martin.panter', 'levkivskyi']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue28482'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7']

    @vadmium
    Copy link
    Member Author

    vadmium commented Oct 20, 2016

    If you compile with “configure --without-threads”, various tests are already skipped because they rely on multithreading. However test_typing does not seem to handle this. It tries to import “asyncio”, which seems to depend on multithreading. I presume it is expected that asyncio requires multithreading, so perhaps the affected tests should be skipped in test_typing. Here is my attempt to skip them; please review.

    @vadmium vadmium added 3.7 (EOL) end of life tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Oct 20, 2016
    @gvanrossum
    Copy link
    Member

    Can you submit this as a PR upstream, to github.com/python/typing?

    @gvanrossum
    Copy link
    Member

    Ivan, if you want to apply it upstream be my guest!

    @vadmium
    Copy link
    Member Author

    vadmium commented Oct 21, 2016

    I will this to Git Hub when I get a chance to get set up, if that helps though :)

    @ilevkivskyi
    Copy link
    Member

    Martin, I have opened a PR with your patch at python/typing
    python/typing#304

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Oct 21, 2016

    New changeset c3363f684a2d by Guido van Rossum in branch '3.5':
    Issue bpo-28482: Skip a few test_typing tests if asyncio unavailable
    https://hg.python.org/cpython/rev/c3363f684a2d

    New changeset 8f3b4779afaf by Guido van Rossum in branch '3.6':
    Issue bpo-28482: Skip a few test_typing tests if asyncio unavailable (3.5->3.6)
    https://hg.python.org/cpython/rev/8f3b4779afaf

    New changeset c5fb5ac84f1e by Guido van Rossum in branch 'default':
    Issue bpo-28482: Skip a few test_typing tests if asyncio unavailable (3.6->3.7)
    https://hg.python.org/cpython/rev/c5fb5ac84f1e

    @gvanrossum
    Copy link
    Member

    Martin can you verify that this worked?

    @vadmium
    Copy link
    Member Author

    vadmium commented Oct 22, 2016

    Yep, working well. Thanks Guido & Ivan.

    @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 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