mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
test_gdb: dump gdb version in verbose mode
This commit is contained in:
parent
0ce1953bf7
commit
d0f3e07a60
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue