[Telepathy-commits] [telepathy-gabble/master] gabbletest.py: simplify verbosity logic
Dafydd Harries
dafydd.harries at collabora.co.uk
Tue Aug 19 10:52:22 PDT 2008
20080506232513-c9803-adbe8919bdad46e19d109ea586a356c231a1674b.gz
---
tests/twisted/gabbletest.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/tests/twisted/gabbletest.py b/tests/twisted/gabbletest.py
index 358d41b..7589dd1 100644
--- a/tests/twisted/gabbletest.py
+++ b/tests/twisted/gabbletest.py
@@ -287,10 +287,9 @@ def install_colourer():
def exec_test(fun, params=None, protocol=None, timeout=None):
queue = servicetest.IteratingEventQueue(timeout)
-
- queue.verbose = (os.environ.get('CHECK_TWISTED_VERBOSE', '') != '')
- if '-v' in sys.argv:
- queue.verbose = True
+ queue.verbose = (
+ os.environ.get('CHECK_TWISTED_VERBOSE', '') != ''
+ or '-v' in sys.argv)
bus = dbus.SessionBus()
conn, stream = prepare_test(bus, queue.append, params, protocol=protocol)
--
1.5.6.3
More information about the Telepathy-commits
mailing list