From 9f6fa6513946e78de6e77a7e924fedc84c89ad25 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 19 Aug 2018 17:47:26 +0100 Subject: examples, tests: Replace all @asyncio.coroutines with proper async functions. --- tests/test_stream_xep_0047.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') 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("""