From dd4be141608e4ee92d2affcd47fa8cf0d0bc8fed Mon Sep 17 00:00:00 2001 From: Daniel Mil Date: Fri, 9 Jun 2023 10:33:16 -0700 Subject: [PATCH] fix: Fix failing tests on Python3.11 --- .../local/invoke/runtimes/test_with_runtime_zips.py | 2 +- tests/integration/sync/test_sync_infra.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/local/invoke/runtimes/test_with_runtime_zips.py b/tests/integration/local/invoke/runtimes/test_with_runtime_zips.py index d455da4ba1..751474b64b 100644 --- a/tests/integration/local/invoke/runtimes/test_with_runtime_zips.py +++ b/tests/integration/local/invoke/runtimes/test_with_runtime_zips.py @@ -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 diff --git a/tests/integration/sync/test_sync_infra.py b/tests/integration/sync/test_sync_infra.py index 4f0b54cb74..53bf5fb763 100644 --- a/tests/integration/sync/test_sync_infra.py +++ b/tests/integration/sync/test_sync_infra.py @@ -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)) @@ -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)) @@ -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))