Skip to content
Myr

remove test copied from markupsafe

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 3ff8ec7 · Browse files · 1 file+0 added−18 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−18 removed

  • tests:+0 added−18 removed

1 file+0 added−18 removed

modified:tests/test_utils.py-18 removed
74 unmodified lines
75 assert func('FOO.TXT') == False767778@pytest.mark.utils79@pytest.mark.markupleak80@pytest.mark.skipif(hasattr(escape, 'func_code'),81 reason='this test only tests the c extension')82class TestMarkupLeak(object):8384 def test_markup_leaks(self):85 counts = set()86 for count in range(20):87 for item in range(1000):88 escape("foo")89 escape("<foo>")90 escape(u"foo")91 escape(u"<foo>")92 counts.add(len(gc.get_objects()))93 assert len(counts) == 1, 'ouch, c extension seems to leak objects'949596@pytest.mark.utils79@pytest.mark.escapeUrlizeTarget80class TestEscapeUrlizeTarget(object):81 def test_escape_urlize_target(self):82 url = "http://example.org"
4 unmodified lines