# HG changeset patch
# User Stefan Behnel <stefan_ml@behnel.de>
# Date 1593356587 -7200
#      Sun Jun 28 17:03:07 2020 +0200
# Node ID 4bce8e0c8f54b84dcf5b835ecd1addf79643f62d
# Parent  2e52db00a2935aaf13c1c9d56faf98502f28e0a1
Test runner: disable keep-alive output in --debug mode to keep a potential pdb console clean.

diff --git a/runtests.py b/runtests.py
--- a/runtests.py
+++ b/runtests.py
@@ -2185,7 +2185,7 @@
         for listfile in options.listfile:
             cmd_args.extend(load_listfile(listfile))
 
-    if options.capture:
+    if options.capture and not options.for_debugging:
         keep_alive_interval = 10
     else:
         keep_alive_interval = None