summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2017-07-06 10:41:46 -0700
committerDavid Lord <davidism@gmail.com>2017-07-06 10:41:46 -0700
commit5477175dab46fbbd266e5f2ae46cd944002cac9d (patch)
treed2d141739e07508801c3fbccdf37d7e5a3f20eac
parent3ff8ec7b82fe4370033cbd6ebdfe52a000836e2c (diff)
downloadjinja2-5477175dab46fbbd266e5f2ae46cd944002cac9d.tar.gz
remove test copied from markupsafe
-rw-r--r--tests/test_utils.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 2400fb8..f71c608 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -76,24 +76,6 @@ class TestHelpers(object):
@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):
def test_escape_urlize_target(self):