Skip to content

Commit 41d559e

Browse files
author
Tom McCarthy
committed
chore: skip tests using pytest-mock's spy for python < 3.8 due to issues with lib
1 parent 24f6187 commit 41d559e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/functional/idempotency/test_idempotency.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import copy
2+
import sys
23

34
import pytest
45
from botocore import stub
@@ -97,6 +98,7 @@ def lambda_handler(event, context):
9798
stubber.deactivate()
9899

99100

101+
@pytest.mark.skipif(sys.version_info < (3, 8), reason="issue with pytest mock lib for < 3.8")
100102
@pytest.mark.parametrize("persistence_store", [{"use_local_cache": True}], indirect=True)
101103
def test_idempotent_lambda_in_progress_with_cache(
102104
persistence_store, lambda_apigw_event, lambda_response, timestamp_future, hashed_idempotency_key, mocker
@@ -183,6 +185,7 @@ def lambda_handler(event, context):
183185
stubber.deactivate()
184186

185187

188+
@pytest.mark.skipif(sys.version_info < (3, 8), reason="issue with pytest mock lib for < 3.8")
186189
@pytest.mark.parametrize("persistence_store", [{"use_local_cache": True}], indirect=True)
187190
def test_idempotent_lambda_first_execution_cached(
188191
persistence_store,

0 commit comments

Comments
 (0)