You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2007/09/18 14:54:10 UTC

svn commit: r576873 - /incubator/qpid/trunk/qpid/python/qpid/testlib.py

Author: rhs
Date: Tue Sep 18 05:54:10 2007
New Revision: 576873

URL: http://svn.apache.org/viewvc?rev=576873&view=rev
Log:
made testlib use session_open for 0-10

Modified:
    incubator/qpid/trunk/qpid/python/qpid/testlib.py

Modified: incubator/qpid/trunk/qpid/python/qpid/testlib.py
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/qpid/testlib.py?rev=576873&r1=576872&r2=576873&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/qpid/testlib.py (original)
+++ incubator/qpid/trunk/qpid/python/qpid/testlib.py Tue Sep 18 05:54:10 2007
@@ -208,7 +208,11 @@
         self.exchanges = []
         self.client = self.connect()
         self.channel = self.client.channel(1)
-        self.channel.channel_open()
+        version = (self.client.spec.major, self.client.spec.minor)
+        if version == (8, 0) or "transitional" in self.client.spec.file:
+            self.channel.channel_open()
+        else:
+            self.channel.session_open()
 
     def tearDown(self):
         try: