[telepathy-mission-control/master] SimulatedConnection.ensure_handle: fix ensuring the same handle twice

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Apr 1 10:00:18 PDT 2009


---
 test/twisted/mctest.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/twisted/mctest.py b/test/twisted/mctest.py
index 275331c..9a0a6a8 100644
--- a/test/twisted/mctest.py
+++ b/test/twisted/mctest.py
@@ -127,7 +127,7 @@ class SimulatedConnection(object):
 
     def ensure_handle(self, type, identifier):
         if (type, identifier) in self._handles:
-            return self._handles[identifier]
+            return self._handles[(type, identifier)]
 
         self._last_handle += 1
         self._handles[(type, identifier)] = self._last_handle
-- 
1.5.6.5




More information about the telepathy-commits mailing list