def test_repeat(self, size):
        try:
            with test_support._check_py3k_warnings():
                b = buffer("AAAA")*size
        except MemoryError:
            pass # acceptable on 32-bit
        else:
            count = 0
            for c in b:
                self.assertEquals(c, 'A')
                count += 1
            self.assertEquals(count, size*4)