summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2018-05-05 07:33:48 -0700
committerDavid Lord <davidism@gmail.com>2018-05-05 07:33:48 -0700
commit2f865d516184aa88465099ff7dc08c3c5bce21c3 (patch)
treef02cbe8f2a5dfa6e29cb37fac0601b8bbc67ff63
parentb159ba30c747859419e25f3570844b5bf8c67eb3 (diff)
downloadmarkupsafe-2f865d516184aa88465099ff7dc08c3c5bce21c3.tar.gz
fix test_leak skip
-rw-r--r--setup.py2
-rw-r--r--tests/test_leak.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 6cf59ef..cbc8905 100644
--- a/setup.py
+++ b/setup.py
@@ -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():