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 5299a35486c354cf62aa16dd5f73fa1ff3ead35f Author: Kaxil Naik <[email protected]> AuthorDate: Tue Sep 16 00:17:18 2025 +0100 Dev: Fix Python 3.13 compatibility in production image tests (#55700) Replace `remove()` with `discard()` when handling `apache-airflow-providers-fab` package for Python 3.13 to avoid `KeyError` when package is not present. Example error: https://github.com/apache/airflow/actions/runs/17747714819/job/50436510299 on `v3-1-test` (cherry picked from commit b73809a599b8ea26a0eb30680aad7f95c9fcab71) --- docker-tests/tests/docker_tests/test_prod_image.py | 2 +- 1 file changed, 1 insertion(+), 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 0b72c0e03cf..3c4bf9528e8 100644 --- a/docker-tests/tests/docker_tests/test_prod_image.py +++ b/docker-tests/tests/docker_tests/test_prod_image.py @@ -98,7 +98,7 @@ class TestPythonPackages: image=default_docker_image, ) if python_version.startswith("Python 3.13"): - packages_to_install.remove("apache-airflow-providers-fab") + packages_to_install.discard("apache-airflow-providers-fab") output = run_bash_in_docker( "airflow providers list --output json", image=default_docker_image,
