summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qpid/cpp/src/tests/brokertest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/brokertest.py b/qpid/cpp/src/tests/brokertest.py
index 4e5c255a1a..c93a086301 100644
--- a/qpid/cpp/src/tests/brokertest.py
+++ b/qpid/cpp/src/tests/brokertest.py
@@ -488,8 +488,9 @@ class BrokerTest(TestCase):
os.makedirs(self.dir)
os.chdir(self.dir)
self.teardown_list = [] # things to tear down at end of test
-
- self.protocol = defs.get("PROTOCOL") or ("amqp1.0" if qpid_messaging else "amqp0-10")
+ if qpid_messaging: default_protocol="amqp1.0"
+ else: default_protocol="amqp0-10"
+ self.protocol = defs.get("PROTOCOL") or default_protocol
self.tx_protocol = "amqp0-10" # Transactions not yet supported over 1.0