Skip to content

Commit 7101638

Browse files
committed
fix: boto3 session region
1 parent ea8506d commit 7101638

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/integ/sagemaker/jumpstart/conftest.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@ def _teardown():
4343

4444
test_suite_id = os.environ[ENV_VAR_JUMPSTART_SDK_TEST_SUITE_ID]
4545

46-
sagemaker_client = boto3.client(
46+
boto3_session = boto3.Session(region_name=JUMPSTART_DEFAULT_REGION_NAME)
47+
48+
sagemaker_client = boto3_session.client(
4749
"sagemaker",
4850
config=Config(retries={"max_attempts": 10, "mode": "standard"}),
49-
region_name=JUMPSTART_DEFAULT_REGION_NAME,
5051
)
5152

52-
sagemaker_session = Session(sagemaker_client=sagemaker_client)
53+
sagemaker_session = Session(boto3_session=boto3_session, sagemaker_client=sagemaker_client)
5354

5455
search_endpoints_result = sagemaker_client.search(
5556
Resource="Endpoint",

0 commit comments

Comments
 (0)