Skip to content

Commit 8fd3537

Browse files
committed
don't test GC behaviour on pypy
1 parent b81b77e commit 8fd3537

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_asyncio/test_connection.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import asyncio
2+
import platform
23
import socket
34
import types
45
from unittest.mock import Mock, patch
@@ -307,6 +308,8 @@ async def test_connection_socket_cleanup(request, from_url):
307308
"""Verify that connections are cleaned up when they
308309
are garbage collected
309310
"""
311+
if platform.python_implementation() != "CPython":
312+
pytest.skip("only works on CPython")
310313
url: str = request.config.getoption("--redis-url")
311314
url_args = parse_url(url)
312315

0 commit comments

Comments
 (0)