From b11f5448faf30741320fb31dedf3150c92dfd7d1 Mon Sep 17 00:00:00 2001 From: GPK Date: Mon, 2 Jun 2025 22:39:37 +0100 Subject: [PATCH] [v3-0-test] Remove PytestReturnNotNoneWarning (#51327) (cherry picked from commit 2624df691a08463271017430f30fd4d17492b1ff) Co-authored-by: GPK --- airflow-ctl/pyproject.toml | 1 - pyproject.toml | 1 - task-sdk/pyproject.toml | 1 - 3 files changed, 3 deletions(-) diff --git a/airflow-ctl/pyproject.toml b/airflow-ctl/pyproject.toml index 08ec690a82cfe..e9bbc394453b2 100644 --- a/airflow-ctl/pyproject.toml +++ b/airflow-ctl/pyproject.toml @@ -154,7 +154,6 @@ norecursedirs = [ log_level = "INFO" filterwarnings = [ "error::pytest.PytestCollectionWarning", - "error::pytest.PytestReturnNotNoneWarning", ] python_files = [ "test_*.py", diff --git a/pyproject.toml b/pyproject.toml index f67170042c179..3002e6ab4d80d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -870,7 +870,6 @@ norecursedirs = [ log_level = "INFO" filterwarnings = [ "error::pytest.PytestCollectionWarning", - "error::pytest.PytestReturnNotNoneWarning", # Avoid building cartesian product which might impact performance "error:SELECT statement has a cartesian product between FROM:sqlalchemy.exc.SAWarning:airflow", 'error:Coercing Subquery object into a select\(\) for use in IN\(\):sqlalchemy.exc.SAWarning:airflow', diff --git a/task-sdk/pyproject.toml b/task-sdk/pyproject.toml index 89de4c0f5d21e..071dfc1f1fe4d 100644 --- a/task-sdk/pyproject.toml +++ b/task-sdk/pyproject.toml @@ -199,7 +199,6 @@ norecursedirs = [ log_level = "INFO" filterwarnings = [ "error::pytest.PytestCollectionWarning", - "error::pytest.PytestReturnNotNoneWarning", ] python_files = [ "test_*.py",