-
Notifications
You must be signed in to change notification settings - Fork 159
KeyboardInterrupt during async generator fixture setup results in RuntimeError #219
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
Comments
I created #221 PR but I don't know how to link it to this issue. |
Can we have the PR merged and if possible shipped in a release? |
asvetlov
added a commit
that referenced
this issue
Jan 11, 2022
clrpackages
pushed a commit
to clearlinux-pkgs/pypi-pytest_asyncio
that referenced
this issue
Jan 17, 2022
… to version 0.17.0 Andrew Svetlov (20): Add 'Framework :: Asyncio' trove classifier Reformat with black Fix readme, the plugin now provide fixtures for unused udp ports also (#241) Ignote .python-version file marker Update changelog for added plugin modes (#243) Avoid non-stantdard approached for warning emitting (#242) Rewrite flaky integration test (#246) Setup pre-commit hooks and reformat code (#245) Setup initial codeowners (#244) Switch to declarative setup (#247) Fix typo Configure dependabot version updater (#250) Setup GitHub Workflows linter and yaml-reformatter (#253) Release process automation (#252) Build on tag Fix trove classifier for asyncio Fix release artifacts Convert README.rst to Markdown for making githun release Fix pandoc installation procedure Bump to 0.17 release Bruno Oliveira (2): Add note about unittest.TestCase not being supported Mention IsolatedAsyncioTestCase Dominik S. Buse (1): Add unused port helpers for UDP (#99) Imran Hayder (1): Switch to setuptools-scm for versioning (#37) Kian-Meng, Ang (1): Fix typo Michael Seifert (7): Teardown of the event_loop fixture no longer replaces the event loop policy. refactor: Removed use of obsolete transfer_markers during test collection phase. feat!: Drop support for Python 3.6. refactor: Moved test_hypothesis_integration to "hypothesis" subfolder and renamed it to "test_base". fix: Fixed double wrapping of inherited Hypothesis tests. doc: Updated docstring of pytest_pyfunc_call. doc: Mentioned additional test dependency on flaky in the changelog. Nikita Sobolev (1): Use `[email protected]` in CI Piper Merriam (1): Add mechanism for explicit marking of fixtures which should be run with asyncio (#125) Tin Tvrtkovic (2): Update CI badge Durr dependabot[bot] (1): Bump codecov/codecov-action from 1 to 2.1.0 (#251) kriek (1): Fixes pytest-dev/pytest-asyncio#219 (#221) wjsi (1): Support flaky on async tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello there,
I'm using asyncio-0.15.1 and it seems there is a bug when pytest is interrupted during the setup code of an async generator fixture.
Minimal reproduction test module:
If I hit Ctrl-C during fixture setup, it results in:
It seems we would need to transform:
into:
so that the cleanup code will only be executed if the setup code is finished.
The text was updated successfully, but these errors were encountered: