The GitHub Actions job "Tests (AMD)" on airflow.git/backport-445549a-v3-3-test 
has succeeded.
Run started by GitHub user github-actions[bot] (triggered by pierrejeambrun).

Head commit for run:
3c3affd06e31080dd2523dc1bbd16a0bae80cc6f / Tzu-ping Chung <[email protected]>
[v3-3-test] Fix wtforms-mocking condition (#70811)

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]>

Report URL: https://github.com/apache/airflow/actions/runs/30623845340

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to