'Verify the pretty-printing of an instance of a list subclass'

def test_subclassing_list(self):

    (gdb_repr, gdb_output) = self.get_gdb_repr('\nclass    Foo(list):\n                pass\nfoo    =    Foo()\nfoo    +=    [1,    2,    3]\nfoo.an_int    =    42\nprint    foo')
    m = re.match('<Foo\\(an_int=42\\)    at    remote    0x[0-9a-f]+>', gdb_repr)
    self.assertTrue(m, msg=('Unexpected    new-style    class    rendering    %r' % gdb_repr))
