Skip to content

Commit 6e3118a

Browse files
authored
Remove AIRFLOW_V_2_7_PLUS constant (apache#42627)
1 parent be2e48e commit 6e3118a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

contributing-docs/testing/unit_tests.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1184,10 +1184,10 @@ are not part of the public API. We deal with it in one of the following ways:
11841184
11851185
.. code-block:: python
11861186
1187-
from tests.test_utils.compat import AIRFLOW_V_2_7_PLUS
1187+
from tests.test_utils.compat import AIRFLOW_V_2_8_PLUS
11881188
11891189
1190-
@pytest.mark.skipif(not AIRFLOW_V_2_7_PLUS, reason="The tests should be skipped for Airflow < 2.7")
1190+
@pytest.mark.skipif(not AIRFLOW_V_2_8_PLUS, reason="The tests should be skipped for Airflow < 2.8")
11911191
def some_test_that_only_works_for_airflow_2_7_plus():
11921192
pass
11931193

tests/test_utils/compat.py

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
from airflow import __version__ as airflow_version
4343

4444
AIRFLOW_VERSION = Version(airflow_version)
45-
AIRFLOW_V_2_7_PLUS = Version(AIRFLOW_VERSION.base_version) >= Version("2.7.0")
4645
AIRFLOW_V_2_8_PLUS = Version(AIRFLOW_VERSION.base_version) >= Version("2.8.0")
4746
AIRFLOW_V_2_9_PLUS = Version(AIRFLOW_VERSION.base_version) >= Version("2.9.0")
4847
AIRFLOW_V_2_10_PLUS = Version(AIRFLOW_VERSION.base_version) >= Version("2.10.0")

0 commit comments

Comments
 (0)