summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_stream_xep_0047.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_stream_xep_0047.py b/tests/test_stream_xep_0047.py
index 2cc43823..ecba2445 100644
--- a/tests/test_stream_xep_0047.py
+++ b/tests/test_stream_xep_0047.py
@@ -1,3 +1,4 @@
+import asyncio
import threading
import time
@@ -78,6 +79,7 @@ class TestInBandByteStreams(SlixTest):
self.assertEqual(events, set(['ibb_stream_start', 'callback']))
+ @asyncio.coroutine
def testSendData(self):
"""Test sending data over an in-band bytestream."""
@@ -115,7 +117,7 @@ class TestInBandByteStreams(SlixTest):
# Test sending data out
- stream.send("Testing")
+ yield from stream.send("Testing")
self.send("""
<iq type="set" id="2"