You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by am...@apache.org on 2025/11/23 18:56:09 UTC

(airflow) branch backport-80585fb-v3-1-test created (now 94ee7887166)

This is an automated email from the ASF dual-hosted git repository.

amoghdesai pushed a change to branch backport-80585fb-v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


      at 94ee7887166 [v3-1-test] Fix potential test failures on Py 3.13 against reset_logging (#57417) (cherry picked from commit 80585fb)

This branch includes the following new commits:

     new 94ee7887166 [v3-1-test] Fix potential test failures on Py 3.13 against reset_logging (#57417) (cherry picked from commit 80585fb)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(airflow) 01/01: [v3-1-test] Fix potential test failures on Py 3.13 against reset_logging (#57417) (cherry picked from commit 80585fb)

Posted by am...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

amoghdesai pushed a commit to branch backport-80585fb-v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 94ee78871661b822836ad932f4b1987277d590d9
Author: Amogh Desai <am...@gmail.com>
AuthorDate: Wed Oct 29 02:11:27 2025 +0530

    [v3-1-test] Fix potential test failures on Py 3.13 against reset_logging (#57417)
    (cherry picked from commit 80585fb)
    
    Co-authored-by: Amogh Desai <am...@gmail.com>
---
 task-sdk/src/airflow/sdk/log.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/task-sdk/src/airflow/sdk/log.py b/task-sdk/src/airflow/sdk/log.py
index 6e0d280d2d7..6e81a96b254 100644
--- a/task-sdk/src/airflow/sdk/log.py
+++ b/task-sdk/src/airflow/sdk/log.py
@@ -248,8 +248,10 @@ def reset_logging():
     from airflow.sdk._shared.logging.structlog import structlog_processors
 
     global _warnings_showwarning
-    warnings.showwarning = _warnings_showwarning
-    _warnings_showwarning = None
+    if _warnings_showwarning is not None:
+        warnings.showwarning = _warnings_showwarning
+        _warnings_showwarning = None
+
     structlog_processors.cache_clear()
     logging_processors.cache_clear()