@@ -595,7 +595,7 @@ def test_build_layer_with_architecture_not_compatible(self, build_method, use_co
595595 # Build should still succeed
596596 self .assertEqual (command_result .process .returncode , 0 )
597597
598- @parameterized .expand ([("python3.8 " , False ), ("python3.8 " , "use_container" )])
598+ @parameterized .expand ([("python3.11 " , False ), ("python3.11 " , "use_container" )])
599599 def test_build_arch_no_compatible_arch (self , runtime , use_container ):
600600 # BuildArchitecture is present, but CompatibleArchitectures section is missing
601601 if use_container and (SKIP_DOCKER_TESTS or SKIP_DOCKER_BUILD ):
@@ -621,7 +621,7 @@ def test_build_arch_no_compatible_arch(self, runtime, use_container):
621621 # Build should still succeed
622622 self .assertEqual (command_result .process .returncode , 0 )
623623
624- @parameterized .expand ([("python3.8 " , False ), ("python3.8 " , "use_container" )])
624+ @parameterized .expand ([("python3.11 " , False ), ("python3.11 " , "use_container" )])
625625 def test_compatible_arch_no_build_arch (self , runtime , use_container ):
626626 # CompatibleArchitectures is present, but BuildArchitecture section is missing
627627 if use_container and (SKIP_DOCKER_TESTS or SKIP_DOCKER_BUILD ):
@@ -691,7 +691,7 @@ def test_function_build_succeeds_with_referenced_layer(self, use_container):
691691 if use_container and (SKIP_DOCKER_TESTS or SKIP_DOCKER_BUILD ):
692692 self .skipTest (SKIP_DOCKER_MESSAGE )
693693
694- overrides = {"Runtime" : "python3.8 " , "CodeUri" : "Python" }
694+ overrides = {"Runtime" : "python3.11 " , "CodeUri" : "Python" }
695695
696696 cmdlist = self .get_command_list (
697697 use_container = use_container , parameter_overrides = overrides , function_identifier = "FunctionTwo"
@@ -1123,7 +1123,7 @@ def test_no_cached_override_build(self):
11231123 "FunctionCodeUri" : "Python" ,
11241124 "Function1Handler" : "main.first_function_handler" ,
11251125 "Function2Handler" : "main.second_function_handler" ,
1126- "FunctionRuntime" : "python3.8 " ,
1126+ "FunctionRuntime" : "python3.11 " ,
11271127 }
11281128 config_file = str (Path (self .test_data_path ).joinpath ("samconfig_no_cached.toml" ))
11291129 cmdlist = self .get_command_list (parameter_overrides = overrides , cached = True )
@@ -1161,7 +1161,7 @@ def test_cached_build_with_env_vars(self):
11611161 "FunctionCodeUri" : "Python" ,
11621162 "Function1Handler" : "main.first_function_handler" ,
11631163 "Function2Handler" : "main.second_function_handler" ,
1164- "FunctionRuntime" : "python3.8 " ,
1164+ "FunctionRuntime" : "python3.11 " ,
11651165 }
11661166 cmdlist = self .get_command_list (
11671167 use_container = True , parameter_overrides = overrides , cached = True , container_env_var = "FOO=BAR"
0 commit comments