From bdaa841e8c032327cc1d523a1ff41ec6c3f7eee5 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 22 Jan 2022 12:55:55 +0100 Subject: [PATCH] fix(test): Remove is_relative_to as it's only supported in 3.9 --- tests/operators/test_dbt_deps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/operators/test_dbt_deps.py b/tests/operators/test_dbt_deps.py index 71edbab..26918df 100644 --- a/tests/operators/test_dbt_deps.py +++ b/tests/operators/test_dbt_deps.py @@ -173,7 +173,8 @@ def test_dbt_deps_doesnt_affect_non_package_files( files_and_times = [ (_file, os.stat(_file).st_mtime) for _file in dbt_project_file.parent.glob("**/*") - if not Path(_file).is_relative_to(dbt_packages_dir) + # is_relative_to was added in 3.9 and we support both 3.7 and 3.8 + if dbt_packages_dir.name not in str(_file) ] dbt_packages_and_times = [ (_file, os.stat(_file).st_mtime) for _file in dbt_packages_dir.glob("**/*")