Skip to content

Commit

Permalink
fix: Fix failing tests on Python3.11 (aws#5317)
Browse files Browse the repository at this point in the history
  • Loading branch information
mildaniel authored and lucashuy committed Jun 22, 2023
1 parent 6ed18b0 commit 004c37b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def setUp(self):
def tearDown(self):
os.remove(self.events_file_path)

@pytest.mark.timeout(timeout=300, method="thread")
@parameterized.expand([param("Go1xFunction"), param("Java8Function")])
@pytest.mark.timeout(timeout=300, method="thread")
def test_runtime_zip(self, function_name):
command_list = InvokeIntegBase.get_command_list(
function_name, template_path=self.template_path, event_path=self.events_file_path
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/sync/test_sync_infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def _verify_infra_changes(self, resources):
IS_WINDOWS,
"Skip sync ruby tests in windows",
)
@pytest.mark.flaky(reruns=3)
@parameterized.expand([["ruby", False], ["python", False], ["python", True]])
@pytest.mark.flaky(reruns=3)
def test_sync_infra(self, runtime, use_container):
template_before = f"infra/template-{runtime}-before.yaml"
template_path = str(self.test_data_path.joinpath(template_before))
Expand Down Expand Up @@ -147,8 +147,8 @@ def test_sync_infra(self, runtime, use_container):
else:
self._verify_infra_changes(self.stack_resources)

@pytest.mark.flaky(reruns=3)
@parameterized.expand([["python", False], ["python", True]])
@pytest.mark.flaky(reruns=3)
def test_sync_infra_auto_skip(self, runtime, use_container):
template_before = f"infra/template-{runtime}-before.yaml"
template_path = str(self.test_data_path.joinpath(template_before))
Expand Down Expand Up @@ -208,8 +208,8 @@ def test_sync_infra_auto_skip(self, runtime, use_container):
# Lambda Api call here, which tests both the python function and the layer
self._verify_infra_changes(self.stack_resources)

@pytest.mark.flaky(reruns=3)
@parameterized.expand([["python", False], ["python", True]])
@pytest.mark.flaky(reruns=3)
def test_sync_infra_auto_skip_nested(self, runtime, use_container):
template_before = str(Path("infra", "parent-stack.yaml"))
template_path = str(self.test_data_path.joinpath(template_before))
Expand Down

0 comments on commit 004c37b

Please sign in to comment.