summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_stream_xep_0047.py5
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"