Kaydet (Commit) d0f3e07a authored tarafından Antoine Pitrou's avatar Antoine Pitrou

test_gdb: dump gdb version in verbose mode

üst 0ce1953b
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
import os import os
import re import re
import pprint
import subprocess import subprocess
import sys import sys
import sysconfig import sysconfig
...@@ -17,6 +18,7 @@ try: ...@@ -17,6 +18,7 @@ try:
except ImportError: except ImportError:
_thread = None _thread = None
from test import support
from test.support import run_unittest, findfile, python_is_optimized from test.support import run_unittest, findfile, python_is_optimized
try: try:
...@@ -837,6 +839,10 @@ class PyLocalsTests(DebuggerTests): ...@@ -837,6 +839,10 @@ class PyLocalsTests(DebuggerTests):
r".*\na = 1\nb = 2\nc = 3\n.*") r".*\na = 1\nb = 2\nc = 3\n.*")
def test_main(): def test_main():
if support.verbose:
print("GDB version:")
for line in os.fsdecode(gdb_version).splitlines():
print(" " * 4 + line)
run_unittest(PrettyPrintTests, run_unittest(PrettyPrintTests,
PyListTests, PyListTests,
StackNavigationTests, StackNavigationTests,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment