'Ensure that a reference loop involving a list doesn\'t lead proxyval
into an infinite loop:'

def test_selfreferential_list(self):

    (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,    [[...]]]')
