summaryrefslogtreecommitdiff
path: root/tests/test_leak.py
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2020-01-29 21:05:42 -0800
committerDavid Lord <davidism@gmail.com>2020-01-29 22:20:50 -0800
commitc3d647d951981135e1e4a501a40fb6481b4b534a (patch)
treeca951757a32e038c5904a770215a4385a9b438de /tests/test_leak.py
parent1ca1c38cc851ac0708dc8ab48c47ca0c33404683 (diff)
downloadmarkupsafe-c3d647d951981135e1e4a501a40fb6481b4b534a.tar.gz
use _mod fixture in more testsdrop-python2
Diffstat (limited to 'tests/test_leak.py')
-rw-r--r--tests/test_leak.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_leak.py b/tests/test_leak.py
index 5ed906a..55b10b9 100644
--- a/tests/test_leak.py
+++ b/tests/test_leak.py
@@ -1,5 +1,5 @@
import gc
-import sys
+import platform
import pytest
@@ -20,7 +20,7 @@ def test_markup_leaks():
escape("foo")
escape("<foo>")
- if hasattr(sys, "pypy_version_info"):
+ if platform.python_implementation() == "PyPy":
gc.collect()
counts.add(len(gc.get_objects()))