diff --git a/tests/test_connection.py b/tests/test_connection.py index c79ee7b735..0a5b9c15d9 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -1,4 +1,5 @@ import copy +import platform import socket import threading import types @@ -448,6 +449,9 @@ def test_clears_cache_on_disconnect(self, mock_connection, cache_conf): assert len(cache.get_collection()) == 0 + @pytest.mark.skipif( + platform.python_implementation() == "PyPy", reason="Pypy doesn't support side_effect" + ) def test_read_response_returns_cached_reply(self, mock_cache, mock_connection): mock_connection.retry = "mock" mock_connection.host = "mock" @@ -526,6 +530,9 @@ def test_read_response_returns_cached_reply(self, mock_cache, mock_connection): ] ) + @pytest.mark.skipif( + platform.python_implementation() == "PyPy", reason="Pypy doesn't support side_effect" + ) def test_triggers_invalidation_processing_on_another_connection( self, mock_cache, mock_connection ):