Skip to content

Commit

Permalink
Restrict tests cause of PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
vladvildanov committed Sep 19, 2024
1 parent c36219f commit 6d63a59
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_connection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import copy
import platform
import socket
import threading
import types
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
):
Expand Down

0 comments on commit 6d63a59

Please sign in to comment.