From: Antoine Pitrou Date: Sat, 21 Sep 2013 21:56:17 +0000 (+0200) Subject: test_gdb: dump gdb version in verbose mode X-Git-Tag: v3.4.0a3~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0f3e07a608ef10768f4b5a807b6ce2beb5b73a9;p=python test_gdb: dump gdb version in verbose mode --- diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index ce441590c4..5c573b2f3a 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -5,6 +5,7 @@ import os import re +import pprint import subprocess import sys import sysconfig @@ -17,6 +18,7 @@ try: except ImportError: _thread = None +from test import support from test.support import run_unittest, findfile, python_is_optimized try: @@ -837,6 +839,10 @@ class PyLocalsTests(DebuggerTests): r".*\na = 1\nb = 2\nc = 3\n.*") def test_main(): + if support.verbose: + print("GDB version:") + for line in os.fsdecode(gdb_version).splitlines(): + print(" " * 4 + line) run_unittest(PrettyPrintTests, PyListTests, StackNavigationTests,