From d0f3e07a608ef10768f4b5a807b6ce2beb5b73a9 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 21 Sep 2013 23:56:17 +0200 Subject: [PATCH] test_gdb: dump gdb version in verbose mode --- Lib/test/test_gdb.py | 6 ++++++ 1 file changed, 6 insertions(+) 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, -- 2.50.0