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


The following commit(s) were added to refs/heads/v3-1-test by this push:
     new 427c4c77c69 Dev: Fix Python 3.13 compatibility in production image 
tests
427c4c77c69 is described below

commit 427c4c77c69515756bffb34baa3e0a3ffbd05edd
Author: Kaxil Naik <[email protected]>
AuthorDate: Mon Sep 15 23:38:41 2025 +0100

    Dev: Fix Python 3.13 compatibility in production image tests
    
    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 0ea4dfc5f241e5c3322cd465293456141271c553)
---
 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,

Reply via email to