diff --git a/dvc/testing/benchmarks/cli/stories/use_cases/test_sharing.py b/dvc/testing/benchmarks/cli/stories/use_cases/test_sharing.py index e50f0c355..2384404df 100644 --- a/dvc/testing/benchmarks/cli/stories/use_cases/test_sharing.py +++ b/dvc/testing/benchmarks/cli/stories/use_cases/test_sharing.py @@ -3,10 +3,12 @@ import shutil from packaging import version -def test_sharing(bench_dvc, tmp_dir, dvc, make_dataset, remote, dvc_rev): +def test_sharing(bench_dvc, tmp_dir, dvc, make_dataset, remote, dvc_bin): is_gs = dvc.config["remote"]["upstream"]["url"].startswith("gs://") - if dvc_rev and is_gs and version.Version(dvc_rev) < version.Version("3.59.3"): - # support for allow_anonymous_login in gs was introduced in dvc==3.59.3 + if is_gs and version.Version(dvc_bin.version) < version.Version("3.59.2"): + # support for allow_anonymous_login in gs was introduced in dvc==3.60 + # This should not impact the test, just that it will make it slower if used + # with fake-gcs-server. with dvc.config.edit() as d: d["remote"]["upstream"].pop("allow_anonymous_login", None) diff --git a/pyproject.toml b/pyproject.toml index 3ae2f8685..8a617e17d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -173,6 +173,7 @@ filterwarnings = [ "ignore:nx.nx_pydot.* depends on the pydot package, which has.*known issues and is not actively maintained:DeprecationWarning", # TODO: investigate where we are not closing sqlite3.Connection "ignore:unclosed database.*sqlite3.Connection:ResourceWarning", + "ignore:unclosed.*