komuw / wiji

Wiji is an asyncio distributed task processor/queue.
MIT License
4 stars 1 forks source link

maybe, turn asyncio Warnings to errors #19

Open komuw opened 5 years ago

komuw commented 5 years ago

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
  4. https://docs.python.org/3/library/logging.html#logging.captureWarnings