Skip to content

Commit

Permalink
disable aip 44 for lessthan airlfow 3 version (apache#43818)
Browse files Browse the repository at this point in the history
  • Loading branch information
gopidesupavan authored Nov 11, 2024
1 parent f757b87 commit 41d073e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests_common/test_utils/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import contextlib
import json
import os
from typing import TYPE_CHECKING, Any, cast

from packaging.version import Version
Expand All @@ -43,6 +44,11 @@
AIRFLOW_V_2_10_PLUS = Version(AIRFLOW_VERSION.base_version) >= Version("2.10.0")
AIRFLOW_V_3_0_PLUS = Version(AIRFLOW_VERSION.base_version) >= Version("3.0.0")

if AIRFLOW_V_3_0_PLUS:
os.environ["AIRFLOW_ENABLE_AIP_44"] = os.environ.get("AIRFLOW_ENABLE_AIP_44", "true")
else:
os.environ["AIRFLOW_ENABLE_AIP_44"] = "false"

try:
from airflow.models.baseoperatorlink import BaseOperatorLink
except ImportError:
Expand Down

0 comments on commit 41d073e

Please sign in to comment.