]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
remove test copied from markupsafe
authorDavid Lord <davidism@gmail.com>
Thu, 6 Jul 2017 17:41:46 +0000 (10:41 -0700)
committerDavid Lord <davidism@gmail.com>
Thu, 6 Jul 2017 17:41:46 +0000 (10:41 -0700)
tests/test_utils.py

index 2400fb8bd3b7207db2e5ee80e5f5ad22e7b1fb3b..f71c608e5b1cc741cd572c1921ad56281e09b9eb 100644 (file)
@@ -75,24 +75,6 @@ class TestHelpers(object):
         assert func('FOO.TXT') == False
 
 
-@pytest.mark.utils
-@pytest.mark.markupleak
-@pytest.mark.skipif(hasattr(escape, 'func_code'),
-                    reason='this test only tests the c extension')
-class TestMarkupLeak(object):
-
-    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'
-
-
 @pytest.mark.utils
 @pytest.mark.escapeUrlizeTarget
 class TestEscapeUrlizeTarget(object):