From 4521e8df69ec2b7ab6327a56c13276ed5717f010 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Fri, 17 Jan 2025 18:08:48 +0100 Subject: [PATCH] Skip serialization tests when latest botocore is installed (#45755) --- tests/serialization/test_dag_serialization.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/serialization/test_dag_serialization.py b/tests/serialization/test_dag_serialization.py index a67864fb1ca6b..2b5d4cce4c7bb 100644 --- a/tests/serialization/test_dag_serialization.py +++ b/tests/serialization/test_dag_serialization.py @@ -415,6 +415,13 @@ def setup_test_cases(self): ) ) + # Skip that test if latest botocore is used - it reads all example dags and in case latest botocore + # is upgraded to latest, usually aiobotocore can't be installed and some of the system tests will fail with + # import errors. + @pytest.mark.skipif( + os.environ.get("UPGRADE_BOTO", "") == "true", + reason="This test is skipped when latest botocore is installed", + ) @pytest.mark.db_test def test_serialization(self): """Serialization and deserialization should work for every DAG and Operator."""