This is an automated email from the ASF dual-hosted git repository. kaxilnaik pushed a commit to branch v3-1-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit e5ff56cfd10199c586d0d976ffa84c5f4df54400 Author: Kaxil Naik <[email protected]> AuthorDate: Tue Sep 16 00:22:36 2025 +0100 Dev: Fix another Python 3.13 compat for Prod image tests Example failure: https://github.com/apache/airflow/actions/runs/17748671388/job/50439223767 ``` if python_version.startswith("Python 3.13"): > import_names.remove("airflow.providers.fab") E ValueError: list.remove(x): x not in list tests/docker_tests/test_prod_image.py:212: ValueError =========================== short test summary info ============================ FAILED tests/docker_tests/test_prod_image.py::TestPythonPackages::test_check_dependencies_imports[providers-import_names0] - ValueError: list.remove(x): x not in list ======================== 1 failed, 10 passed in 32.41s ========================= ``` (cherry picked from commit b155efea4955acbf580a214b4d39c7ae78229aec) --- docker-tests/tests/docker_tests/test_prod_image.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-tests/tests/docker_tests/test_prod_image.py b/docker-tests/tests/docker_tests/test_prod_image.py index 3c4bf9528e8..984ab7d0e90 100644 --- a/docker-tests/tests/docker_tests/test_prod_image.py +++ b/docker-tests/tests/docker_tests/test_prod_image.py @@ -209,7 +209,8 @@ class TestPythonPackages: image=default_docker_image, ) if python_version.startswith("Python 3.13"): - import_names.remove("airflow.providers.fab") + if "airflow.providers.fab" in import_names: + import_names.remove("airflow.providers.fab") run_python_in_docker(f"import {','.join(import_names)}", image=default_docker_image) def test_there_is_no_opt_airflow_airflow_folder(self, default_docker_image):
