diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-19 17:47:26 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-08-19 17:47:26 +0100 |
commit | 9f6fa6513946e78de6e77a7e924fedc84c89ad25 (patch) | |
tree | 079a4f43a51cb7b4242c87aaa41810a30be11644 /tests/test_stream_xep_0047.py | |
parent | 35fa33e3c232377acf77805d858a4efec54180ca (diff) | |
download | slixmpp-9f6fa6513946e78de6e77a7e924fedc84c89ad25.tar.gz slixmpp-9f6fa6513946e78de6e77a7e924fedc84c89ad25.tar.bz2 slixmpp-9f6fa6513946e78de6e77a7e924fedc84c89ad25.tar.xz slixmpp-9f6fa6513946e78de6e77a7e924fedc84c89ad25.zip |
examples, tests: Replace all @asyncio.coroutines with proper async functions.
Diffstat (limited to 'tests/test_stream_xep_0047.py')
-rw-r--r-- | tests/test_stream_xep_0047.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_stream_xep_0047.py b/tests/test_stream_xep_0047.py index a0e6c227..f7276c0f 100644 --- a/tests/test_stream_xep_0047.py +++ b/tests/test_stream_xep_0047.py @@ -79,8 +79,7 @@ class TestInBandByteStreams(SlixTest): self.assertEqual(events, {'ibb_stream_start', 'callback'}) - @asyncio.coroutine - def testSendData(self): + async def testSendData(self): """Test sending data over an in-band bytestream.""" streams = [] @@ -117,7 +116,7 @@ class TestInBandByteStreams(SlixTest): # Test sending data out - yield from stream.send("Testing") + await stream.send("Testing") self.send(""" <iq type="set" id="2" |