Skip to content

Commit

Permalink
fix(test): Remove is_relative_to as it's only supported in 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Jan 22, 2022
1 parent 63984b7 commit bdaa841
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/operators/test_dbt_deps.py
Expand Up @@ -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("**/*")
Expand Down

0 comments on commit bdaa841

Please sign in to comment.