docstr: Verify the pretty-printing of an instance of a tuple subclass
docstr_tok: ["Verify","the","pretty-printing","of","an","instance","of","a","tuple","subclass"]
code: def test_subclassing_tuple(self):
      "Verify the pretty-printing of an instance of a tuple subclass"
      # This should exercise the negative tp_dictoffset code in the
      # new-style class support
      gdb_repr, gdb_output = self.get_gdb_repr(
          """
  class Foo(tuple):
      pass
  foo = Foo((1, 2, 3))
  foo.an_int = 42
  id(foo)"""
      )
      m = re.match(
          r"<Foo\(an_int=42\) at remote 0x-?[0-9a-f]+>", gdb_repr
      )
  
      self.assertTrue(
          m, msg="Unexpected new-style class rendering %r" % gdb_repr
      )
  
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 16 for calling the PrettyPrintTests obj's underlying member method code with example usage: obj.test_subclassing_tuple() without return types