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

turn asyncio Warnings to errors #100

Open
komuw opened this issue Feb 21, 2019 · 1 comment
Open

turn asyncio Warnings to errors #100

komuw opened this issue Feb 21, 2019 · 1 comment

Comments

@komuw
Copy link
Owner

komuw commented Feb 21, 2019

We should turn warnings like;
RuntimeWarning: coroutine 'someCoro' was never awaited
into an error.

We should especially do this in the development environment and test/ci env.

  1. https://docs.python.org/3/library/exceptions.html#RuntimeWarning
  2. https://docs.python.org/3/library/asyncio-dev.html
  3. https://stackoverflow.com/questions/5644836/in-python-how-does-one-catch-warnings-as-if-they-were-exceptions
@komuw
Copy link
Owner Author

komuw commented Mar 2, 2019

maybe also add an asyncio blocked calls detector: https://github.com/komuw/wiji/blob/224d2bcdf223d2fdd54179317b135c029e12b497/wiji/watchdog.py

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

1 participant