diff options
author | David Lord <davidism@gmail.com> | 2018-11-03 15:26:05 -0700 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2018-11-03 15:31:24 -0700 |
commit | b41c96e00afd09eca075a98589886c78666d4d33 (patch) | |
tree | bf372cf97c44210717b8954919436023f275627b /tests/test_leak.py | |
parent | 6247e015ebe0006ee16e69da7aaaba20de18ec94 (diff) | |
download | markupsafe-b41c96e00afd09eca075a98589886c78666d4d33.tar.gz |
add style checks
Diffstat (limited to 'tests/test_leak.py')
-rw-r--r-- | tests/test_leak.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_leak.py b/tests/test_leak.py index 29e1ec1..b36a4ce 100644 --- a/tests/test_leak.py +++ b/tests/test_leak.py @@ -8,20 +8,20 @@ from markupsafe import escape @pytest.mark.skipif( - escape.__module__ == 'markupsafe._native', - reason='only test memory leak with speedups' + escape.__module__ == "markupsafe._native", + reason="only test memory leak with speedups", ) def test_markup_leaks(): counts = set() - for count in range(20): - for item in range(1000): + for _i in range(20): + for _j in range(1000): escape("foo") escape("<foo>") escape(u"foo") escape(u"<foo>") - if hasattr(sys, 'pypy_version_info'): + if hasattr(sys, "pypy_version_info"): gc.collect() counts.add(len(gc.get_objects())) |