docstr: Ensure that a reference loop involving a list doesn't lead proxyval
  into an infinite loop:
docstr_tok: ["Ensure","that","a","reference","loop","involving","a","list","does","n't","lead","proxyval","into","an","infinite","loop",":"]
code: def test_selfreferential_list(self):
      """Ensure that a reference loop involving a list doesn't lead proxyval
      into an infinite loop:"""
      gdb_repr, gdb_output = self.get_gdb_repr(
          "a = [3, 4, 5] ; a.append(a) ; id(a)"
      )
      self.assertEqual(gdb_repr, "[3, 4, 5, [...]]")
  
      gdb_repr, gdb_output = self.get_gdb_repr(
          "a = [3, 4, 5] ; b = [a] ; a.append(b) ; id(a)"
      )
      self.assertEqual(gdb_repr, "[3, 4, 5, [[...]]]")
  
imports: import re
  import sys
  from test import support
  from .util import BREAKPOINT_FN, GDB_VERSION, run_gdb, setup_module, DebuggerTests
label_desc: Use image node_id 24 for calling the PrettyPrintTests obj's underlying member method code with example usage: obj.test_selfreferential_list() without return types