python-trio / trio-websocket

WebSocket client and server implementation for Python Trio
MIT License
70 stars 26 forks source link

upgrade to Trio channels #41

Closed belm0 closed 6 years ago

belm0 commented 6 years ago

pending trio 0.9.0 release

belm0 commented 6 years ago

trio 0.9.0 has been released

mehaase commented 6 years ago

Also need to remove usage of Queue, e.g. in unit test:

/home/travis/build/HyperionGray/trio-websocket/tests/test_connection.py:51: TrioDeprecationWarning: trio.Queue is deprecated since Trio 0.9.0; use trio.open_memory_channel instead (https://github.com/python-trio/trio/issues/497)
  queued_streams = attr.ib(default=attr.Factory(lambda: trio.Queue(1)))
/home/travis/build/HyperionGray/trio-websocket/tests/test_connection.py:51: TrioDeprecationWarning: trio.Queue is deprecated since Trio 0.9.0; use trio.open_memory_channel instead (https://github.com/python-trio/trio/issues/497)
  queued_streams = attr.ib(default=attr.Factory(lambda: trio.Queue(1)))
-- Docs: https://docs.pytest.org/en/latest/warnings.html
==================== 21 passed, 2 warnings in 0.52 seconds =====================