diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-09-21 21:56:17 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-09-21 21:56:17 (GMT) |
commit | d0f3e07a608ef10768f4b5a807b6ce2beb5b73a9 (patch) | |
tree | 5e81c94e8c3c304f658231d0c13c4fa36b4114ab /Lib/test/test_gdb.py | |
parent | 0ce1953bf73dcf414e24213daa9e5b03584d795d (diff) | |
download | cpython-d0f3e07a608ef10768f4b5a807b6ce2beb5b73a9.zip cpython-d0f3e07a608ef10768f4b5a807b6ce2beb5b73a9.tar.gz cpython-d0f3e07a608ef10768f4b5a807b6ce2beb5b73a9.tar.bz2 |
test_gdb: dump gdb version in verbose mode
Diffstat (limited to 'Lib/test/test_gdb.py')
-rw-r--r-- | Lib/test/test_gdb.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index ce44159..5c573b2 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, |