def test_markup_leaks(self):
        counts = set()
        for count in range(20):
            for item in range(1000):
                escape("foo")
                escape("<foo>")
                escape(u"foo")
                escape(u"<foo>")
            counts.add(len(gc.get_objects()))
        assert len(counts) == 1, 'ouch, c extension seems to leak objects'
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/markupsafe/tests.py/MarkupLeakTestCase.test_markup_leaks/original