diff options
author | David Lord <davidism@gmail.com> | 2018-05-05 07:33:48 -0700 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2018-05-05 07:33:48 -0700 |
commit | 2f865d516184aa88465099ff7dc08c3c5bce21c3 (patch) | |
tree | f02cbe8f2a5dfa6e29cb37fac0601b8bbc67ff63 | |
parent | b159ba30c747859419e25f3570844b5bf8c67eb3 (diff) | |
download | markupsafe-2f865d516184aa88465099ff7dc08c3c5bce21c3.tar.gz |
fix test_leak skip
-rw-r--r-- | setup.py | 2 | ||||
-rw-r--r-- | tests/test_leak.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -127,7 +127,7 @@ if not (is_pypy or is_jython): ) run_setup(False) show_message( - 'WARNING: The C extension could not be compiled, speedups' + 'WARNING: The C extension could not be compiled, speedups' ' are not enabled.', 'Plain-Python build succeeded.' ) diff --git a/tests/test_leak.py b/tests/test_leak.py index 964341a..29e1ec1 100644 --- a/tests/test_leak.py +++ b/tests/test_leak.py @@ -8,7 +8,7 @@ from markupsafe import escape @pytest.mark.skipif( - hasattr(escape, 'func_code'), + escape.__module__ == 'markupsafe._native', reason='only test memory leak with speedups' ) def test_markup_leaks(): |