Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from botocore.exceptions import WaiterError
from moto import mock_aws

from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from airflow.exceptions import AirflowException
from airflow.providers.amazon.aws.hooks.emr import EmrHook


Expand Down Expand Up @@ -174,9 +174,7 @@ def test_create_job_flow_extra_args(self):
warnings.simplefilter("error")
if sys.version_info >= (3, 12):
# Botocore generates deprecation warning on Python 3.12 connected with utcnow use
warnings.filterwarnings(
"ignore", message=r".*datetime.utcnow.*", category=AirflowProviderDeprecationWarning
)
warnings.filterwarnings("ignore", message=r".*datetime.utcnow.*", category=DeprecationWarning)
cluster = hook.create_job_flow(
{"Name": "test_cluster", "ReleaseLabel": "", "AmiVersion": "3.2", "Instances": {}}
)
Expand Down
Loading