Skip to content

Commit 6d63a59

Browse files
committed
Restrict tests cause of PyPy
1 parent c36219f commit 6d63a59

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_connection.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import copy
2+
import platform
23
import socket
34
import threading
45
import types
@@ -448,6 +449,9 @@ def test_clears_cache_on_disconnect(self, mock_connection, cache_conf):
448449

449450
assert len(cache.get_collection()) == 0
450451

452+
@pytest.mark.skipif(
453+
platform.python_implementation() == "PyPy", reason="Pypy doesn't support side_effect"
454+
)
451455
def test_read_response_returns_cached_reply(self, mock_cache, mock_connection):
452456
mock_connection.retry = "mock"
453457
mock_connection.host = "mock"
@@ -526,6 +530,9 @@ def test_read_response_returns_cached_reply(self, mock_cache, mock_connection):
526530
]
527531
)
528532

533+
@pytest.mark.skipif(
534+
platform.python_implementation() == "PyPy", reason="Pypy doesn't support side_effect"
535+
)
529536
def test_triggers_invalidation_processing_on_another_connection(
530537
self, mock_cache, mock_connection
531538
):

0 commit comments

Comments
 (0)