diff --git a/airflow/include/dagintegritytestdefault.py b/airflow/include/dagintegritytestdefault.py index e433703be..ce5412d5e 100644 --- a/airflow/include/dagintegritytestdefault.py +++ b/airflow/include/dagintegritytestdefault.py @@ -131,7 +131,7 @@ def test_file_imports(rel_path, rv): """Test for import errors on a file""" if os.path.exists(".astro/dag_integrity_exceptions.txt"): with open(".astro/dag_integrity_exceptions.txt", "r") as f: - exceptions = f.readlines() + exceptions = [line.strip() for line in f] print(f"Exceptions: {exceptions}") if (rv != "No import errors") and rel_path not in exceptions: # If rv is not "No import errors," consider it a failed test