From: David Lord Date: Thu, 6 Jul 2017 17:41:46 +0000 (-0700) Subject: remove test copied from markupsafe X-Git-Tag: 2.10~18^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5477175dab46fbbd266e5f2ae46cd944002cac9d;p=thirdparty%2Fjinja.git remove test copied from markupsafe --- diff --git a/tests/test_utils.py b/tests/test_utils.py index 2400fb8b..f71c608e 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -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("") - escape(u"foo") - escape(u"") - 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):