github-actions[bot] opened a new pull request, #70821:
URL: https://github.com/apache/airflow/pull/70821

   The previous code
   
       "wtforms.StringField" not in sys.modules
   
   always evaluates to True because StringField is not a module, and is
   never present in sys.modules even if wtforms IS installed and imported.
   
   Judging from surrounding code, I think the original intention is to only
   patch if wtforms is not installed (and thuse a MagicMock was injected in
   the previous block). This changes the check to reflect my assumed
   intention.
   
   I also tightened the custom ModuleNotFoundError a bit to carry more
   useful information.
   (cherry picked from commit 445549aad5e26840ba33ed37dfab3690f5b35216)
   
   Co-authored-by: Tzu-ping Chung <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to