'Verify the pretty-printing of sets'

def test_sets(self):

    if ((gdb_major_version, gdb_minor_version) < (7, 3)):
        self.skipTest('pretty-printing    of    sets    needs    gdb    7.3    or    later')
    self.assertGdbRepr(set(), 'set()')
    self.assertGdbRepr(set(['a']), "{'a'}")
    if (not sys.flags.ignore_environment):
        self.assertGdbRepr(set(['a', 'b']), "{'a',    'b'}")
        self.assertGdbRepr(set([4, 5, 6]), '{4,    5,    6}')
    (gdb_repr, gdb_output) = self.get_gdb_repr("s    =    set(['a','b'])\ns.remove('a')\nid(s)")
    self.assertEqual(gdb_repr, "{'b'}")
