Skip to content

IsolatedAsyncioTestCase calls _setupAsyncioRunner even for skipped tests #96030

Closed

Description

@tiran

Bug report

TestCase.run() is always executed, even for skipped tests. In fact the method checks for skipped and expected failure markers. The implementation of IsolatedAsyncioTestCase.run runs additional code around TestCase.run that does not obey the skipped marker. This was first discovered when GH-95736 broke tests on wasm32-emscripten. _setupAsyncioRunner should not be called if a test method or class is marked as skipped.

I have an easy fix for the issue.

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    on Aug 16, 2022
  2. added 2 commits that reference this issue on Aug 16, 2022
  3. gvanrossum commented on Aug 16, 2022

    @gvanrossum
    Member

    Maybe #96033 was meant to fix this too?

  4. changed the title [-]IsolatedAsyncioTestCase sets up asyncio runner for skipped tests[/-] [+]IsolatedAsyncioTestCase calls _setupAsyncioRunner even for skipped tests[/+] on Aug 16, 2022
  5. kumaraditya303 commented on Oct 30, 2022

    @kumaraditya303
    Contributor

    AFAIK this is already fixed by #96033.

  6. added
    pendingThe issue will be closed if no feedback is provided
    on Oct 30, 2022
  7. Repository owner moved this from Todo to Done in asyncioon Oct 30, 2022
  8. Repository owner moved this from Todo to Done in Unittest & doctest issueson Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingThe issue will be closed if no feedback is providedtestsTests in the Lib/test dirtopic-asynciotype-bugAn unexpected behavior, bug, or error

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions