[Telepathy-commits] [telepathy-gabble/master] make set_up_echo return the path of the UNIX socket

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Feb 27 05:21:24 PST 2009


---
 tests/twisted/tubes/tubetestutil.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/twisted/tubes/tubetestutil.py b/tests/twisted/tubes/tubetestutil.py
index eca68d9..6cc1c03 100644
--- a/tests/twisted/tubes/tubetestutil.py
+++ b/tests/twisted/tubes/tubetestutil.py
@@ -210,12 +210,14 @@ def set_up_echo(name):
     """
     factory = Factory()
     factory.protocol = Echo
+    full_path = os.getcwd() + '/stream' + name
     try:
-        os.remove(os.getcwd() + '/stream' + name)
+        os.remove(full_path)
     except OSError, e:
         if e.errno != errno.ENOENT:
             raise
-    reactor.listenUNIX(os.getcwd() + '/stream' + name, factory)
+    reactor.listenUNIX(full_path, factory)
+    return full_path
 
 def exec_tube_test(test):
     def test_ibb(q, bus, conn, stream):
-- 
1.5.6.5




More information about the telepathy-commits mailing list