summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/testlib.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/python/qpid/testlib.py b/qpid/python/qpid/testlib.py
index b6cf6d7446..931face3a4 100644
--- a/qpid/python/qpid/testlib.py
+++ b/qpid/python/qpid/testlib.py
@@ -192,7 +192,10 @@ Options:
user = user or self.user
password = password or self.password
client = qpid.client.Client(host, port, spec)
- client.start({"LOGIN": user, "PASSWORD": password}, tune_params=tune_params)
+ if self.use08spec():
+ client.start({"LOGIN": user, "PASSWORD": password}, tune_params=tune_params)
+ else:
+ client.start("\x00" + user + "\x00" + password, mechanism="PLAIN", tune_params=tune_params)
return client
def get_spec_file(self, fname):