summaryrefslogtreecommitdiff
path: root/gbp
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2015-02-10 17:14:18 +0200
committerGuido Günther <agx@sigxcpu.org>2015-02-18 08:55:02 +0100
commit8c5e565570faa70599f307a22bb705227afb577f (patch)
treea5b985f4842722526548bd8c665ef5298f983383 /gbp
parentaa22e2260d7cc2e69d50dc00f686e72f0101aaed (diff)
tests: restore logger module after tampering it
So that subsequent log capture (by GbpLogTester) is not affected. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp')
-rw-r--r--gbp/scripts/import_orig.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gbp/scripts/import_orig.py b/gbp/scripts/import_orig.py
index f73dea1..1e0e85b 100644
--- a/gbp/scripts/import_orig.py
+++ b/gbp/scripts/import_orig.py
@@ -253,11 +253,13 @@ def parse_args(argv):
@return: options and arguments
# Silence error output
+ >>> _gbp_log_error_bak = gbp.log.error
>>> gbp.log.error = lambda x: None
>>> parse_args(['arg0', '--download', '--uscan'])
(None, None)
>>> parse_args(['arg0', '--download', 'first', 'second'])
(None, None)
+ >>> gbp.log.error = _gbp_log_error_bak
"""
parser = build_parser(argv[0])