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

Packaging to pypi #1

Closed
peniqliotuv opened this issue Nov 24, 2021 · 2 comments
Closed

Packaging to pypi #1

peniqliotuv opened this issue Nov 24, 2021 · 2 comments

Comments

@peniqliotuv
Copy link

@puddly I came across your repo here pytest-dev/pytest-asyncio#184 after getting into a deep rabbit hole about how to fail tests if coroutines were not awaited. Would it be possible to package this into pypi?

@puddly
Copy link
Owner

puddly commented Nov 26, 2021

It looks like pytest implemented this functionality a few months after I made this repo. This unit test fails for me, as expected:

import pytest

async def async_coro():
    await asyncio.sleep(0)

@pytest.mark.filterwarnings("error::pytest.PytestUnraisableExceptionWarning")
@pytest.mark.filterwarnings("error::RuntimeWarning")
@pytest.mark.asyncio
async def test_coroutine_not_awaited():
    async_coro()

@peniqliotuv
Copy link
Author

Confirmed this works, thank you @puddly !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants