diff --git a/python/ray/tests/test_cli.py b/python/ray/tests/test_cli.py index 97286004c..2536be89d 100644 --- a/python/ray/tests/test_cli.py +++ b/python/ray/tests/test_cli.py @@ -92,7 +92,7 @@ def configure_aws(): # moto (boto3 mock) only allows a hardcoded set of AMIs dlami = ( - moto.ec2.ec2_backends["us-west-2"] + moto.ec2.models.ec2_backends["us-west-2"]["us-west-2"] .describe_images(filters={"name": "Deep Learning AMI Ubuntu*"})[0] .id ) diff --git a/python/requirements.txt b/python/requirements.txt index 298a171ff..5b40c60e3 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -64,7 +64,7 @@ google-cloud-storage gym-minigrid==1.0.3 kubernetes lxml -moto[s3,server] < 4.0.0 +moto[s3,server] >= 4.0.0 mypy networkx numba