summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2014-02-06 18:14:53 +0000
committerAlan Conway <aconway@apache.org>2014-02-06 18:14:53 +0000
commit60310a179c87b157bdeb71d20ef2942aedf5f5c0 (patch)
treeb2c218eedf3d800f62edb0360aac042d40ca852b /cpp/src
parentc8dd3b133e56e14d36296088ff8d76565ddfd033 (diff)
downloadqpid-python-60310a179c87b157bdeb71d20ef2942aedf5f5c0.tar.gz
Author: Alan Conway <aconway@redhat.com>
--- log message follows this NO-JIRA: Remove use of python built-in 'next', not available before python 2.6. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1565382 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/tests/brokertest.py2
-rwxr-xr-xcpp/src/tests/ha_test.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/brokertest.py b/cpp/src/tests/brokertest.py
index c7fcf2c3af..4b6820e4fd 100644
--- a/cpp/src/tests/brokertest.py
+++ b/cpp/src/tests/brokertest.py
@@ -278,7 +278,7 @@ class Broker(Popen):
cmd += ["--log-to-stderr=no"]
# Add default --log-enable arguments unless args already has --log arguments.
- if not next((l for l in args if l.startswith("--log")), None):
+ if not [l for l in args if l.startswith("--log")]:
args += ["--log-enable=info+"]
if test_store: cmd += ["--load-module", BrokerTest.test_store_lib,
diff --git a/cpp/src/tests/ha_test.py b/cpp/src/tests/ha_test.py
index 4606fab746..748c8ef0c1 100755
--- a/cpp/src/tests/ha_test.py
+++ b/cpp/src/tests/ha_test.py
@@ -137,7 +137,7 @@ class HaBroker(Broker):
"--max-negotiate-time=1000",
"--ha-cluster=%s"%ha_cluster]
# Add default --log-enable arguments unless args already has --log arguments.
- if not next((l for l in args if l.startswith("--log")), None):
+ if not [l for l in args if l.startswith("--log")]:
args += ["--log-enable=info+", "--log-enable=debug+:ha::"]
if ha_replicate is not None:
args += [ "--ha-replicate=%s"%ha_replicate ]