[Telepathy-commits] [telepathy-gabble/master] offer-muc-stream-tube-ibb: add an extra arg to set_up_listener_socket
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Mon Jan 19 03:42:43 PST 2009
---
tests/twisted/tubes/offer-muc-stream-tube-ibb.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/twisted/tubes/offer-muc-stream-tube-ibb.py b/tests/twisted/tubes/offer-muc-stream-tube-ibb.py
index 1a0f264..7efeb02 100644
--- a/tests/twisted/tubes/offer-muc-stream-tube-ibb.py
+++ b/tests/twisted/tubes/offer-muc-stream-tube-ibb.py
@@ -31,14 +31,14 @@ NS_X_DATA = 'jabber:x:data'
HT_ROOM = 2
-def set_up_listener_socket(q):
+def set_up_listener_socket(q, path):
factory = EventProtocolFactory(q)
try:
- os.remove(os.getcwd() + '/stream')
+ os.remove(os.getcwd() + path)
except OSError, e:
if e.errno != errno.ENOENT:
raise
- reactor.listenUNIX(os.getcwd() + '/stream', factory)
+ reactor.listenUNIX(os.getcwd() + path, factory)
def send_muc_presence(stream, _from, affiliation='none', role='participant'):
presence = domish.Element((None, 'presence'))
@@ -50,7 +50,7 @@ def send_muc_presence(stream, _from, affiliation='none', role='participant'):
stream.send(presence)
def test(q, bus, conn, stream):
- set_up_listener_socket(q)
+ set_up_listener_socket(q, '/stream')
conn.Connect()
_, iq_event = q.expect_many(
--
1.5.6.5
More information about the Telepathy-commits
mailing list