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."""