From 7fd46e0b0df416ecafcc21fddcd512045bd9b464 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Wed, 2 Mar 2016 01:02:11 +0800 Subject: [PATCH] Cleanup --- tests/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils.py b/tests/utils.py index 700efc90..e54969e7 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -189,7 +189,7 @@ def http(*args, **kwargs): if '--debug' not in args: if '--traceback' not in args: extra_args.append('--traceback') - if '--timeout' not in ' '.join(args): + if not any('--timeout' in arg for arg in args): extra_args.append('--timeout=3') args = extra_args + args