diff options
Diffstat (limited to 'tests/test_leak.py')
-rw-r--r-- | tests/test_leak.py | 4 |
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())) |